source: trunk/src/lib/curses.cc @ 509

Last change on this file since 509 was 406, checked in by epyon, 10 years ago
  • code compiles cleanly on maximum warning level
File size: 839 bytes
RevLine 
[395]1// Copyright (C) 2013-2015 ChaosForge Ltd
[218]2// http://chaosforge.org/
3//
[395]4// This file is part of Nova libraries.
5// For conditions of distribution and use, see copying.txt file in root folder.
[218]6
7#include "nv/lib/curses.hh"
8
9#if defined( NV_CURSES_DYNAMIC )
10
[319]11#include "nv/core/library.hh"
[218]12
[374]13#define FILE void
[319]14#define NV_CURSES_FUN( rtype, fname, fparams ) rtype (*fname) fparams = nullptr;
[218]15#include <nv/lib/detail/curses_functions.inc>
[319]16#undef NV_CURSES_FUN
[218]17
18bool nv::load_curses_library( const char* path )
19{
20        static nv::library curses_library;
21        if ( curses_library.is_open() ) return true;
22        curses_library.open( path );
23
[406]24#       define NV_CURSES_FUN( rtype, fname, fparams ) void_assign( ::fname, curses_library.get(#fname) );
[218]25#       include <nv/lib/detail/curses_functions.inc>
[319]26#       undef NV_CURSES_FUN
[218]27        return true;
28}
29#endif
Note: See TracBrowser for help on using the repository browser.