| 173 | |
| 174 | |
| 175 | static void growstrtab (lua_State *L, stringtable *tb) { |
| 176 | if (l_unlikely(tb->nuse == MAX_INT)) { /* too many strings? */ |
| 177 | luaC_fullgc(L, 1); /* try to free some... */ |
| 178 | if (tb->nuse == MAX_INT) /* still too many? */ |
| 179 | luaM_error(L); /* cannot even create a message... */ |
| 180 | } |
| 181 | if (tb->size <= MAXSTRTB / 2) /* can grow string table? */ |
| 182 | luaS_resize(L, tb->size * 2); |
| 183 | } |
| 184 | |
| 185 | |
| 186 | /* |
no test coverage detected