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

Function growstrtab

third-party/lua-5.5.0/src/lstring.c:200–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199
200static 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/*

Callers 1

internshrstrFunction · 0.70

Calls 2

luaC_fullgcFunction · 0.70
luaS_resizeFunction · 0.70

Tested by

no test coverage detected