| 5215 | |
| 5216 | |
| 5217 | static void restore_stack_limit (lua_State *L) { |
| 5218 | lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK - 1); |
| 5219 | if (L->size_ci > LUAI_MAXCALLS) { /* there was an overflow? */ |
| 5220 | int inuse = cast_int(L->ci - L->base_ci); |
| 5221 | if (inuse + 1 < LUAI_MAXCALLS) /* can `undo' overflow? */ |
| 5222 | luaD_reallocCI(L, LUAI_MAXCALLS); |
| 5223 | } |
| 5224 | } |
| 5225 | |
| 5226 | |
| 5227 | static void resetstack (lua_State *L, int status) { |
no test coverage detected