| 329 | DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved); |
| 330 | |
| 331 | extern __declspec(dllexport) BOOL WINAPI |
| 332 | DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { |
| 333 | (void)sizeof(reserved); |
| 334 | (void)sizeof(instance); |
| 335 | if (reason == DLL_PROCESS_ATTACH) |
| 336 | rpmalloc_initialize(); |
| 337 | else if (reason == DLL_PROCESS_DETACH) |
| 338 | rpmalloc_finalize(); |
| 339 | else if (reason == DLL_THREAD_ATTACH) |
| 340 | rpmalloc_thread_initialize(); |
| 341 | else if (reason == DLL_THREAD_DETACH) |
| 342 | rpmalloc_thread_finalize(1); |
| 343 | return TRUE; |
| 344 | } |
| 345 | |
| 346 | //end BUILD_DYNAMIC_LINK |
| 347 | #else |
nothing calls this directly
no test coverage detected