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

Method Release

src/server/angelscript/angelscript/source/as_scriptengine.cpp:1011–1025  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

1009
1010// interface
1011int asCScriptEngine::Release() const
1012{
1013 int r = refCount.atomicDec();
1014
1015 if( r == 0 )
1016 {
1017 // It is possible that some function will temporarily increment the engine ref count
1018 // during clean-up for example while destroying the objects in the garbage collector.
1019 if( !inDestructor )
1020 asDELETE(const_cast<asCScriptEngine*>(this),asCScriptEngine);
1021 return 0;
1022 }
1023
1024 return r;
1025}
1026
1027// interface
1028int asCScriptEngine::ShutDownAndRelease()

Callers 3

~asCScriptEngineMethod · 0.45
ReturnContextMethod · 0.45
RemoveGlobalPropertyMethod · 0.45

Calls 1

atomicDecMethod · 0.80

Tested by

no test coverage detected