| 184 | |
| 185 | |
| 186 | static void growstrtab (lua_State *L, stringtable *tb) { |
| 187 | if (unlikely(tb->nuse == MAX_INT)) { /* too many strings? */ |
| 188 | luaC_fullgc(L, 1); /* try to free some... */ |
| 189 | if (tb->nuse == MAX_INT) /* still too many? */ |
| 190 | luaM_error(L); /* cannot even create a message... */ |
| 191 | } |
| 192 | if (tb->size <= MAXSTRTB / 2) /* can grow string table? */ |
| 193 | luaS_resize(L, tb->size * 2); |
| 194 | } |
| 195 | |
| 196 | |
| 197 | /* |
no test coverage detected