MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcInitGCModule

Function nullcInitGCModule

NULLC/includes/gc.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10#define REGISTER_FUNC(funcPtr, name, index) if(!nullcBindModuleFunction("std.gc", (void(*)())NULLCGC::funcPtr, name, index)) return false;
11bool nullcInitGCModule()
12{
13 if(!nullcBindModuleFunction("std.gc", (void(*)())NULLC::CollectMemory, "NamespaceGC::CollectMemory", 0))
14 return false;
15 if(!nullcBindModuleFunction("std.gc", (void(*)())NULLC::UsedMemory, "NamespaceGC::UsedMemory", 0))
16 return false;
17 if(!nullcBindModuleFunction("std.gc", (void(*)())NULLC::MarkTime, "NamespaceGC::MarkTime", 0))
18 return false;
19 if(!nullcBindModuleFunction("std.gc", (void(*)())NULLC::CollectTime, "NamespaceGC::CollectTime", 0))
20 return false;
21 return true;
22}

Callers 6

RunTestsFunction · 0.85
WinMainFunction · 0.85
mainFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
SpeedTestTextFunction · 0.85

Calls 1

nullcBindModuleFunctionFunction · 0.85

Tested by 4

RunTestsFunction · 0.68
RunMethod · 0.68
RunMethod · 0.68
SpeedTestTextFunction · 0.68