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

Method AddRef

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

Source from the content-addressed store, hash-verified

25 ~CFoo() { if( m_pObject ) m_pObject->Release(); }
26 void SetScriptObject(asIScriptObject* _pObject) { m_pObject = _pObject; }
27 void AddRef() { m_Ref++; }
28 void Release() { if( --m_Ref == 0 ) { delete this; } }
29 static CFoo* CreateObject() { return new CFoo; }
30private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected