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