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

Function callMethodOfBar

sdk/tests/test_feature/source/test_scriptstruct.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void callMethodOfBar(){
45 asIScriptContext* ctx = gEngine->CreateContext();
46
47 asIScriptFunction* func= gBarType->GetMethodByDecl("void method()");
48 ctx->Prepare(func);
49 ctx->SetObject(gBar);
50 ctx->Execute();
51
52 ctx->Release();
53}
54
55template <typename T>
56void defaultConstruct(T* memory){

Callers 1

~FooMethod · 0.85

Calls 6

CreateContextMethod · 0.80
SetObjectMethod · 0.80
ExecuteMethod · 0.80
GetMethodByDeclMethod · 0.45
PrepareMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected