** signal an error in the call to 'resume', not in the execution of the ** coroutine itself. (Such errors should not be handled by any coroutine ** error handler and should not kill the coroutine.) */
| 558 | ** error handler and should not kill the coroutine.) |
| 559 | */ |
| 560 | static l_noret resume_error (lua_State *L, const char *msg, StkId firstArg) { |
| 561 | L->top = firstArg; /* remove args from the stack */ |
| 562 | setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */ |
| 563 | api_incr_top(L); |
| 564 | luaD_throw(L, -1); /* jump back to 'lua_resume' */ |
| 565 | } |
| 566 | |
| 567 | |
| 568 | /* |
no test coverage detected