| 168 | |
| 169 | |
| 170 | static CallInfo *growCI (lua_State *L) { |
| 171 | if (L->size_ci > LUAI_MAXCALLS) /* overflow while handling overflow? */ |
| 172 | luaD_throw(L, LUA_ERRERR); |
| 173 | else { |
| 174 | luaD_reallocCI(L, 2*L->size_ci); |
| 175 | if (L->size_ci > LUAI_MAXCALLS) |
| 176 | luaG_runerror(L, "stack overflow"); |
| 177 | } |
| 178 | return ++L->ci; |
| 179 | } |
| 180 | |
| 181 | |
| 182 | void luaD_callhook (lua_State *L, int event, int line) { |
nothing calls this directly
no test coverage detected