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

Method CopyFrom

sdk/angelscript/source/as_scriptobject.cpp:1042–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040}
1041
1042int asCScriptObject::CopyFrom(const asIScriptObject *other)
1043{
1044 if( other == 0 ) return asINVALID_ARG;
1045
1046 if( GetTypeId() != other->GetTypeId() )
1047 return asINVALID_TYPE;
1048
1049 *this = *(asCScriptObject*)other;
1050
1051 return asSUCCESS;
1052}
1053
1054void *asCScriptObject::AllocateUninitializedObject(asCObjectType *in_objType, asCScriptEngine *engine)
1055{

Callers 2

CopyObjectMethod · 0.45
AssignScriptObjectMethod · 0.45

Calls 1

GetTypeIdMethod · 0.45

Tested by

no test coverage detected