MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / resume_error

Function resume_error

3rd/lua-5.4.3/src/ldo.c:710–716  ·  view source on GitHub ↗

** 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.) */

Source from the content-addressed store, hash-verified

708** coroutine error handler and should not kill the coroutine.)
709*/
710static int resume_error (lua_State *L, const char *msg, int narg) {
711 L->top -= narg; /* remove args from the stack */
712 setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */
713 api_incr_top(L);
714 lua_unlock(L);
715 return LUA_ERRRUN;
716}
717
718
719/*

Callers 1

lua_resumeFunction · 0.85

Calls 1

luaS_newFunction · 0.85

Tested by

no test coverage detected