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

Function unroll

3rd/lua-5.4.3/src/ldo.c:677–688  ·  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

675** interruption long-jumps out of the loop).
676*/
677static void unroll (lua_State *L, void *ud) {
678 CallInfo *ci;
679 UNUSED(ud);
680 while ((ci = L->ci) != &L->base_ci) { /* something in the stack */
681 if (!isLua(ci)) /* C function? */
682 finishCcall(L, ci); /* complete its execution */
683 else { /* Lua function */
684 luaV_finishOp(L); /* finish interrupted instruction */
685 luaV_execute(L, ci); /* execute down to higher C 'boundary' */
686 }
687 }
688}
689
690
691/*

Callers 1

resumeFunction · 0.85

Calls 3

finishCcallFunction · 0.85
luaV_finishOpFunction · 0.85
luaV_executeFunction · 0.85

Tested by

no test coverage detected