MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / growstrtab

Function growstrtab

third-party/lua-5.4.6/src/lstring.c:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174
175static 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/*

Callers 1

internshrstrFunction · 0.70

Calls 2

luaC_fullgcFunction · 0.70
luaS_resizeFunction · 0.70

Tested by

no test coverage detected