*replaced array[..] = array[ .. ] sclice copy with mempcy *added own std library (allocator, alloca, Mutex) *changed tamplates for collecting components for systems -fixed issue with multiple optional components registering for system
31 lines
No EOL
621 B
D
31 lines
No EOL
621 B
D
module win_dll;
|
|
|
|
version(Windows):
|
|
|
|
import core.sys.windows.dll;
|
|
import core.sys.windows.windows;
|
|
|
|
extern(Windows) bool DllMain(void* hInstance, uint ulReason, void*)
|
|
{
|
|
/*switch (ulReason)
|
|
{
|
|
default: assert(0);
|
|
case DLL_PROCESS_ATTACH:
|
|
dll_process_attach( hInstance, true );
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
dll_process_detach( hInstance, true );
|
|
break;
|
|
|
|
case DLL_THREAD_ATTACH:
|
|
dll_thread_attach( true, true );
|
|
break;
|
|
|
|
case DLL_THREAD_DETACH:
|
|
dll_thread_detach( true, true );
|
|
break;
|
|
}
|
|
return true;*/
|
|
return 0;
|
|
} |