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

Method AddRef

sdk/tests/test_feature/source/test_objzerosize.cpp:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 CObject() {val = 0;refCount = 1;}
12 ~CObject() {}
13 void AddRef() {refCount++;}
14 void Release() {if( --refCount == 0 ) delete this;}
15 void Set(int v) {val = v;}
16 int Get() {return val;}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected