MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / growstrtab

Function growstrtab

lua/src/lstring.c:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

internshrstrFunction · 0.85

Calls 2

luaC_fullgcFunction · 0.85
luaS_resizeFunction · 0.85

Tested by

no test coverage detected