| 30 | [[maybe_unused]] LPVOID lpReserved); |
| 31 | |
| 32 | extern "C" BOOL APIENTRY DllMain( |
| 33 | HMODULE hModule, |
| 34 | DWORD ul_reason_for_call, |
| 35 | LPVOID lpReserved) |
| 36 | { |
| 37 | |
| 38 | if (ul_reason_for_call == DLL_PROCESS_ATTACH) |
| 39 | SetMaxThreads(0); |
| 40 | else if (ul_reason_for_call == DLL_PROCESS_DETACH) |
| 41 | { |
| 42 | CloseDebugFiles(); |
| 43 | FreeMemory(); |
| 44 | #ifdef DDS_MEMORY_LEAKS_WIN32 |
| 45 | _CrtDumpMemoryLeaks(); |
| 46 | #endif |
| 47 | } |
| 48 | |
| 49 | hModule; |
| 50 | lpReserved; |
| 51 | |
| 52 | return 1; |
| 53 | } |
| 54 | |
| 55 | #elif (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) || defined(__MAC_OS_X_VERSION_MAX_ALLOWED)) |
| 56 |
nothing calls this directly
no test coverage detected