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

Method DestroyHalfCreated

sdk/angelscript/source/as_scriptfunction.cpp:436–450  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

434
435// internal
436void asCScriptFunction::DestroyHalfCreated()
437{
438 asASSERT( externalRefCount.get() == 0 && internalRefCount.get() == 1 );
439
440 // Set the funcType to dummy so the destructor won't complain
441 funcType = asFUNC_DUMMY;
442
443 // If the bytecode exist remove it before destroying, otherwise it
444 // will fail when the destructor releases the references as the bytecode
445 // is not fully constructed.
446 if( scriptData )
447 scriptData->byteCode.SetLength(0);
448
449 asDELETE(this, asCScriptFunction);
450}
451
452// internal
453void asCScriptFunction::DestroyInternal()

Callers 1

ReadFunctionMethod · 0.80

Calls 2

getMethod · 0.45
SetLengthMethod · 0.45

Tested by

no test coverage detected