| 2305 | } |
| 2306 | |
| 2307 | static int Exec(VMFunction *func, VMValue *params, int numparams, VMReturn *ret, int numret) |
| 2308 | { |
| 2309 | VMCalls[0]++; |
| 2310 | VMFrameStack *stack = &GlobalVMStack; |
| 2311 | VMFrame *newf = stack->AllocFrame(static_cast<VMScriptFunction*>(func)); |
| 2312 | VMFillParams(params, newf, numparams); |
| 2313 | try |
| 2314 | { |
| 2315 | numret = ExecScriptFunc(stack, ret, numret); |
| 2316 | } |
| 2317 | catch (...) |
| 2318 | { |
| 2319 | stack->PopFrame(); |
| 2320 | throw; |
| 2321 | } |
| 2322 | stack->PopFrame(); |
| 2323 | return numret; |
| 2324 | } |
nothing calls this directly
no test coverage detected