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

Method CopyHandle

sdk/angelscript/source/as_scriptobject.cpp:1120–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118}
1119
1120void asCScriptObject::CopyHandle(asPWORD *src, asPWORD *dst, asCObjectType *in_objType, asCScriptEngine *engine)
1121{
1122 // asOBJ_NOCOUNT doesn't have addref or release behaviours
1123 asASSERT( (in_objType->flags & asOBJ_NOCOUNT) || (in_objType->beh.release && in_objType->beh.addref) );
1124
1125 if( *dst && in_objType->beh.release )
1126 engine->CallObjectMethod(*(void**)dst, in_objType->beh.release);
1127 *dst = *src;
1128 if( *dst && in_objType->beh.addref )
1129 engine->CallObjectMethod(*(void**)dst, in_objType->beh.addref);
1130}
1131
1132// TODO: weak: Should move to its own file
1133asCLockableSharedBool::asCLockableSharedBool() : value(false)

Callers

nothing calls this directly

Calls 1

CallObjectMethodMethod · 0.80

Tested by

no test coverage detected