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

Method ReleaseInternal

sdk/angelscript/source/as_scriptfunction.cpp:546–561  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

544
545// internal
546int asCScriptFunction::ReleaseInternal()
547{
548 int r = internalRefCount.atomicDec();
549 if( r == 0 &&
550 funcType != asFUNC_DUMMY )
551 {
552 // There are no more internal references, if there are also no
553 // external references then it is time to delete the function
554 if( externalRefCount.get() == 0 )
555 {
556 asDELETE(const_cast<asCScriptFunction*>(this),asCScriptFunction);
557 }
558 }
559
560 return r;
561}
562
563// interface
564int asCScriptFunction::GetTypeId() const

Callers 2

DestroyInternalMethod · 0.45
ReleaseReferencesMethod · 0.45

Calls 2

atomicDecMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected