** Signal an error in the call to 'lua_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.) */
| 619 | ** coroutine error handler and should not kill the coroutine.) |
| 620 | */ |
| 621 | static int resume_error (lua_State *L, const char *msg, int narg) { |
| 622 | L->top -= narg; /* remove args from the stack */ |
| 623 | setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */ |
| 624 | api_incr_top(L); |
| 625 | lua_unlock(L); |
| 626 | return LUA_ERRRUN; |
| 627 | } |
| 628 | |
| 629 | |
| 630 | /* |
no test coverage detected