MCPcopy Create free account
hub / github.com/anjo76/angelscript / AddRef

Method AddRef

sdk/tests/test_feature/source/test_getset.cpp:27–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 CNode() {refCount = 1; child = 0;}
26 ~CNode() {if( child ) child->Release();}
27 void AddRef() {refCount++;}
28 void Release() {if( --refCount == 0 ) delete this;}
29
30 CNode *GetChild() {return child;}

Callers 1

SetChildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected