10 #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32 12 #elif MYGUI_PLATFORM == MYGUI_PLATFORM_LINUX 33 std::string name =
mName;
34 #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32 35 const std::string extension =
".dll";
36 #elif MYGUI_PLATFORM == MYGUI_PLATFORM_LINUX 37 const std::string extension =
".so";
39 const std::string extension =
"";
42 if (!extension.empty() && name.find(extension) == std::string::npos)
45 #if MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE 59 #if MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE 71 #if MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE 81 #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32 84 FORMAT_MESSAGE_ALLOCATE_BUFFER |
85 FORMAT_MESSAGE_FROM_SYSTEM |
86 FORMAT_MESSAGE_IGNORE_INSERTS,
89 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
93 std::string ret = (
char*)lpMsgBuf;
95 LocalFree( lpMsgBuf );
98 return "no unix error function defined yet";
#define MYGUI_DYNLIB_UNLOAD(a)
void * mInstance
Handle to the loaded library.
DynLib(const std::string &name)
#define MYGUI_DYNLIB_LOAD(a)
#define MYGUI_DYNLIB_GETSYM(a, b)
std::string mName
Name of library.
#define MYGUI_LOG(level, text)
#define MYGUI_DYNLIB_HANDLE
#define MYGUI_EXCEPT(dest)
std::string dynlibError() const
Gets the last loading error.
std::string getName(void) const
Get the name of the library.
void * getSymbol(const std::string &strName) const