14#if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32
15 #define MYGUI_DYNLIB_HANDLE hInstance
17typedef struct HINSTANCE__* hInstance;
18#elif MYGUI_PLATFORM == MYGUI_PLATFORM_LINUX
19 #define MYGUI_DYNLIB_HANDLE void*
20#elif MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE
21 #include <CoreFoundation/CFBundle.h>
22 #define MYGUI_DYNLIB_HANDLE CFBundleRef
39 DynLib(std::string_view name);
51 const std::string&
getName()
const;
61 void*
getSymbol(
const char* strName)
const noexcept;
#define MYGUI_DYNLIB_HANDLE
void * getSymbol(const char *strName) const noexcept
DynLib(std::string_view name)
friend class DynLibManager
const std::string & getName() const
Get the name of the library.
std::string mName
Name of library.
std::string dynlibError() const
Gets the last loading error.
void * mInstance
Handle to the loaded library.