15 #ifndef SYSTEM_DLLMAIN_ICPP 16 #define SYSTEM_DLLMAIN_ICPP 1 21 #if !defined( __APPLE__ ) 27 static void finalize(
void* hinstDLL );
31 #if defined( _WIN32 ) && defined( _DLL ) 43 win::BOOL APIENTRY DllMain( win::HINSTANCE hinstDLL,
45 win::LPVOID lpvReserved
48 switch ( fdwReason ) {
49 case DLL_PROCESS_ATTACH: {
52 case DLL_THREAD_ATTACH:
54 case DLL_THREAD_DETACH:
56 case DLL_PROCESS_DETACH: {
66 static void _init() __attribute__( ( constructor ) );
67 static
void _fini() __attribute__( ( destructor ) );
71 #elif defined( __APPLE__ ) 72 static void _init() __attribute__( ( constructor ) );
73 static
void _fini() __attribute__( ( destructor ) );
84 #endif // SYSTEM_DLLMAIN_ICPP
static void initialize(void *hinstDLL)
GAUDI_API void setModuleHandle(ImageHandle handle)
Attach module handle.
static void finalize(void *hinstDLL)