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

Method FreeObject

sdk/angelscript/source/as_scriptobject.cpp:1084–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1082}
1083
1084void asCScriptObject::FreeObject(void *ptr, asCObjectType *in_objType, asCScriptEngine *engine)
1085{
1086 if( in_objType->flags & asOBJ_REF )
1087 {
1088 asASSERT( (in_objType->flags & asOBJ_NOCOUNT) || in_objType->beh.release );
1089 if(in_objType->beh.release )
1090 engine->CallObjectMethod(ptr, in_objType->beh.release);
1091 }
1092 else
1093 {
1094 if( in_objType->beh.destruct )
1095 engine->CallObjectMethod(ptr, in_objType->beh.destruct);
1096
1097 engine->CallFree(ptr);
1098 }
1099}
1100
1101void asCScriptObject::CopyObject(const void *src, void *dst, asCObjectType *in_objType, asCScriptEngine *engine)
1102{

Callers

nothing calls this directly

Calls 2

CallObjectMethodMethod · 0.80
CallFreeMethod · 0.80

Tested by

no test coverage detected