| 65 | } |
| 66 | |
| 67 | void DynLib::unload() |
| 68 | { |
| 69 | #ifdef MYGUI_DISABLE_PLUGINS |
| 70 | MYGUI_EXCEPT("Plugins support disabled, rebuild MyGUI without MYGUI_DISABLE_PLUGINS"); |
| 71 | #else |
| 72 | // Log library unload |
| 73 | MYGUI_LOG(Info, "Unloading library " << mName); |
| 74 | #if MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE |
| 75 | //APPLE SPECIFIC CODE HERE |
| 76 | #else |
| 77 | if (MYGUI_DYNLIB_UNLOAD(mInstance)) |
| 78 | { |
| 79 | MYGUI_EXCEPT("Could not unload dynamic library '" << mName << "'. System Error: " << dynlibError()); |
| 80 | } |
| 81 | #endif |
| 82 | #endif |
| 83 | } |
| 84 | |
| 85 | void* DynLib::getSymbol(const char* strName) const noexcept |
| 86 | { |