| 325 | } |
| 326 | |
| 327 | int VMNativeFunction::NativeScriptCall(VMFunction *func, VMValue *params, int numparams, VMReturn *returns, int numret) |
| 328 | { |
| 329 | try |
| 330 | { |
| 331 | VMCycles[0].Unclock(); |
| 332 | numret = static_cast<VMNativeFunction *>(func)->NativeCall(VM_INVOKE(params, numparams, returns, numret, func->RegTypes)); |
| 333 | VMCycles[0].Clock(); |
| 334 | |
| 335 | return numret; |
| 336 | } |
| 337 | catch (CVMAbortException &err) |
| 338 | { |
| 339 | err.MaybePrintMessage(); |
| 340 | err.stacktrace.AppendFormat("Called from %s\n", func->PrintableName); |
| 341 | throw; |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | //=========================================================================== |
| 346 | // |
nothing calls this directly
no test coverage detected