MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / unroll

Function unroll

lib/lua/src/ldo.c:736–747  ·  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

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

Callers 1

resumeFunction · 0.85

Calls 3

finishCcallFunction · 0.85
luaV_finishOpFunction · 0.85
luaV_executeFunction · 0.85

Tested by

no test coverage detected