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

Function setStaticHandler

src/hx/Debug.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61static void setStaticHandler(Dynamic &inStore, Dynamic inValue)
62{
63 if ( inStore==null() != inValue==null())
64 {
65 if ( inValue!=null() )
66 GCAddRoot(&inStore.mPtr);
67 else
68 GCRemoveRoot(&inStore.mPtr);
69 }
70 inStore = inValue;
71}
72
73
74

Callers 1

Calls 1

nullClass · 0.50

Tested by

no test coverage detected