MCPcopy Create free account
hub / github.com/acidicoala/SmokeAPI / DLL_MAIN

Function DLL_MAIN

src/main_win.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "linker_exports_for_windows_dlls.h"
9
10DLL_MAIN(void* handle, const uint32_t reason, void*) {
11 if(reason == DLL_PROCESS_ATTACH) {
12 smoke_api::init(handle);
13 } else if(reason == DLL_PROCESS_DETACH) {
14 smoke_api::shutdown();
15 }
16
17 return TRUE;
18}

Callers

nothing calls this directly

Calls 2

shutdownFunction · 0.85
initFunction · 0.70

Tested by

no test coverage detected