MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / checkAttachNone

Function checkAttachNone

test/extern-use/Main.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13extern void __hxcpp_collect(bool inMajor);
14
15bool checkAttachNone(const char *where)
16{
17 if (hx::GcGetThreadAttachedCount()!=0)
18 {
19 printf("Bad attach count - something attached: %s\n",where);
20 return false;
21 }
22 return true;
23}
24
25int main(int argc, char **argv)
26{

Callers 1

mainFunction · 0.85

Calls 1

GcGetThreadAttachedCountFunction · 0.85

Tested by

no test coverage detected