** 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.) */
| 601 | ** coroutine error handler and should not kill the coroutine.) |
| 602 | */ |
| 603 | static int resume_error (lua_State *L, const char *msg, int narg) { |
| 604 | L->top -= narg; /* remove args from the stack */ |
| 605 | setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */ |
| 606 | api_incr_top(L); |
| 607 | lua_unlock(L); |
| 608 | return LUA_ERRRUN; |
| 609 | } |
| 610 | |
| 611 | |
| 612 | /* |
no test coverage detected