38 #ifndef _Core_DynLib_H__ 39 #define _Core_DynLib_H__ 45 #if defined(ORXONOX_PLATFORM_WINDOWS) 46 # define DYNLIB_HANDLE hInstance 47 # define DYNLIB_LOAD( a ) LoadLibraryEx( a, nullptr, LOAD_WITH_ALTERED_SEARCH_PATH ) 48 # define DYNLIB_GETSYM( a, b ) GetProcAddress( a, b ) 49 # define DYNLIB_UNLOAD( a ) !FreeLibrary( a ) 52 typedef struct HINSTANCE__* hInstance;
54 #elif defined(ORXONOX_PLATFORM_UNIX) 55 # define DYNLIB_HANDLE void* 56 # define DYNLIB_LOAD( a ) dlopen( a, RTLD_LAZY | RTLD_GLOBAL) 57 # define DYNLIB_GETSYM( a, b ) dlsym( a, b ) 58 # define DYNLIB_UNLOAD( a ) dlclose( a ) 109 void* getSymbol(
const std::string& strName )
const throw();
#define DYNLIB_HANDLE
Definition: DynLib.h:55
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
DYNLIB_HANDLE m_hInst
Handle to the loaded library.
Definition: DynLib.h:114
std::string mName
Definition: DynLib.h:75
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
Resource holding data about a dynamic library.
Definition: DynLib.h:72
const std::string & getName(void) const
Get the name of the library.
Definition: DynLib.h:96