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

Method GetWeakRefFlagOfScriptObject

sdk/angelscript/source/as_scriptengine.cpp:3969–3982  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

3967
3968// interface
3969asILockableSharedBool *asCScriptEngine::GetWeakRefFlagOfScriptObject(void *obj, const asITypeInfo *type) const
3970{
3971 // Make sure it is not a null pointer
3972 if( obj == 0 || type == 0 ) return 0;
3973
3974 const asCObjectType *objType = static_cast<const asCObjectType *>(type);
3975 asILockableSharedBool *dest = 0;
3976 if( objType->beh.getWeakRefFlag )
3977 {
3978 // Call the getweakrefflag behaviour
3979 dest = reinterpret_cast<asILockableSharedBool*>(CallObjectMethodRetPtr(obj, objType->beh.getWeakRefFlag));
3980 }
3981 return dest;
3982}
3983
3984// internal
3985// orig is the parameter type that is to be replaced

Callers 3

CScriptWeakRefMethod · 0.80
weakref.cppFile · 0.80
EqualsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected