| 280 | } |
| 281 | |
| 282 | int 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 | |
| 302 | asIScriptContext *CScriptMgr::PrepareContextFromPool(asIScriptFunction *func) |
| 303 | { |
nothing calls this directly
no test coverage detected