MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / ExecuteCall

Method ExecuteCall

src/server/angelscript/samples/game/source/scriptmgr.cpp:282–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282int CScriptMgr::ExecuteCall(asIScriptContext *ctx)
283{
284 int r = ctx->Execute();
285 if( r != asEXECUTION_FINISHED )
286 {
287 if( r == asEXECUTION_EXCEPTION )
288 {
289 cout << "Exception: " << ctx->GetExceptionString() << endl;
290 cout << "Function: " << ctx->GetExceptionFunction()->GetDeclaration() << endl;
291 cout << "Line: " << ctx->GetExceptionLineNumber() << endl;
292
293 // It is possible to print more information about the location of the
294 // exception, for example the call stack, values of variables, etc if
295 // that is of interest.
296 }
297 }
298
299 return r;
300}
301
302asIScriptContext *CScriptMgr::PrepareContextFromPool(asIScriptFunction *func)
303{

Callers

nothing calls this directly

Calls 5

ExecuteMethod · 0.80
GetExceptionStringMethod · 0.80
GetDeclarationMethod · 0.80
GetExceptionFunctionMethod · 0.80

Tested by

no test coverage detected