MCPcopy Create free account
hub / github.com/F-Stack/f-stack / resume_error

Function resume_error

freebsd/contrib/openzfs/module/lua/ldo.c:560–565  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

558** error handler and should not kill the coroutine.)
559*/
560static 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/*

Callers 1

resume_cbFunction · 0.70

Calls 2

luaS_newFunction · 0.85
luaD_throwFunction · 0.70

Tested by

no test coverage detected