| 144 | |
| 145 | |
| 146 | static void resetCI (lua_State *L) { |
| 147 | CallInfo *ci = L->ci = &L->base_ci; |
| 148 | ci->func.p = L->stack.p; |
| 149 | setnilvalue(s2v(ci->func.p)); /* 'function' entry for basic 'ci' */ |
| 150 | ci->top.p = ci->func.p + 1 + LUA_MINSTACK; /* +1 for 'function' entry */ |
| 151 | ci->u.c.k = NULL; |
| 152 | ci->callstatus = CIST_C; |
| 153 | L->status = LUA_OK; |
| 154 | L->errfunc = 0; /* stack unwind can "throw away" the error function */ |
| 155 | } |
| 156 | |
| 157 | |
| 158 | static void stack_init (lua_State *L1, lua_State *L) { |
no outgoing calls
no test coverage detected