| 198 | |
| 199 | |
| 200 | static void growstrtab (lua_State *L, stringtable *tb) { |
| 201 | if (l_unlikely(tb->nuse == INT_MAX)) { /* too many strings? */ |
| 202 | luaC_fullgc(L, 1); /* try to free some... */ |
| 203 | if (tb->nuse == INT_MAX) /* still too many? */ |
| 204 | luaM_error(L); /* cannot even create a message... */ |
| 205 | } |
| 206 | if (tb->size <= MAXSTRTB / 2) /* can grow string table? */ |
| 207 | luaS_resize(L, tb->size * 2); |
| 208 | } |
| 209 | |
| 210 | |
| 211 | /* |
no test coverage detected