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

Method Test

sdk/tests/test_feature/source/test_inheritance.cpp:76–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 static bool Test(FooScripted *obj)
77 {
78 if( obj == 0 ) return false;
79
80 bool isValid = true;
81 if( obj->m_obj == 0 )
82 isValid = false;
83 else if( string(obj->m_obj->GetObjectType()->GetName()) != "FooDerived" )
84 isValid = false;
85
86 obj->Release();
87
88 return isValid;
89 }
90
91 FooScripted &operator=(const FooScripted &o)
92 {

Callers

nothing calls this directly

Calls 3

GetNameMethod · 0.45
GetObjectTypeMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected