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

Function unroll

third-party/lua-5.4.6/src/ldo.c:743–754  ·  view source on GitHub ↗

** Executes "full continuation" (everything in the stack) of a ** previously interrupted coroutine until the stack is empty (or another ** interruption long-jumps out of the loop). */

Source from the content-addressed store, hash-verified

741** interruption long-jumps out of the loop).
742*/
743static void unroll (lua_State *L, void *ud) {
744 CallInfo *ci;
745 UNUSED(ud);
746 while ((ci = L->ci) != &L->base_ci) { /* something in the stack */
747 if (!isLua(ci)) /* C function? */
748 finishCcall(L, ci); /* complete its execution */
749 else { /* Lua function */
750 luaV_finishOp(L); /* finish interrupted instruction */
751 luaV_execute(L, ci); /* execute down to higher C 'boundary' */
752 }
753 }
754}
755
756
757/*

Callers 1

resumeFunction · 0.70

Calls 3

finishCcallFunction · 0.70
luaV_finishOpFunction · 0.70
luaV_executeFunction · 0.70

Tested by

no test coverage detected