MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / Release

Method Release

src/server/angelscript/add_on/scriptany/scriptany.cpp:460–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460int CScriptAny::Release() const
461{
462 // Decrease the ref counter
463 gcFlag = false;
464 if( asAtomicDec(refCount) == 0 )
465 {
466 // Delete this object as no more references to it exists
467 delete this;
468 return 0;
469 }
470
471 return refCount;
472}
473
474int CScriptAny::GetRefCount()
475{

Callers 15

runAppMethod · 0.45
SetEngineMethod · 0.45
CompareRelationFunction · 0.45
CompareEqualityFunction · 0.45
ExecuteStringFunction · 0.45
~CSerializerMethod · 0.45
StoreMethod · 0.45
RestoreMethod · 0.45
~CScriptWeakRefMethod · 0.45
weakref.cppFile · 0.45
ReleaseHandleMethod · 0.45

Calls 1

asAtomicDecFunction · 0.85

Tested by

no test coverage detected