MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / resume_error

Function resume_error

third-party/lua-5.5.0/src/ldo.c:899–906  ·  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

897** coroutine error handler and should not kill the coroutine.)
898*/
899static int resume_error (lua_State *L, const char *msg, int narg) {
900 api_checkpop(L, narg);
901 L->top.p -= narg; /* remove args from the stack */
902 setsvalue2s(L, L->top.p, luaS_new(L, msg)); /* push error message */
903 api_incr_top(L);
904 lua_unlock(L);
905 return LUA_ERRRUN;
906}
907
908
909/*

Callers 1

lua_resumeFunction · 0.70

Calls 1

luaS_newFunction · 0.70

Tested by

no test coverage detected