| 506 | |
| 507 | |
| 508 | static 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 | /* |
no test coverage detected