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

Function luaS_clearcache

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

** Clear API string cache. (Entries cannot be empty, so fill them with ** a non-collectable string.) */

Source from the content-addressed store, hash-verified

118** a non-collectable string.)
119*/
120void luaS_clearcache (global_State *g) {
121 int i, j;
122 for (i = 0; i < STRCACHE_N; i++)
123 for (j = 0; j < STRCACHE_M; j++) {
124 if (iswhite(g->strcache[i][j])) /* will entry be collected? */
125 g->strcache[i][j] = g->memerrmsg; /* replace it with something fixed */
126 }
127}
128
129
130/*

Callers 1

atomicFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected