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

Function unroll

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

Source from the content-addressed store, hash-verified

506
507
508static void unroll (lua_State *L, void *ud) {
509 UNUSED(ud);
510 for (;;) {
511 if (L->ci == &L->base_ci) /* stack is empty? */
512 return; /* coroutine finished normally */
513 if (!isLua(L->ci)) /* C function? */
514 finishCcall(L);
515 else { /* Lua function */
516 luaV_finishOp(L); /* finish interrupted instruction */
517 luaV_execute(L); /* execute down to higher C 'boundary' */
518 }
519 }
520}
521
522
523/*

Callers 1

resume_cbFunction · 0.85

Calls 3

finishCcallFunction · 0.85
luaV_finishOpFunction · 0.85
luaV_executeFunction · 0.70

Tested by

no test coverage detected