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

Function luaS_clearcache

third-party/lua-5.3.5/src/lstring.c:103–110  ·  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

101** a non-collectable string.)
102*/
103void luaS_clearcache (global_State *g) {
104 int i, j;
105 for (i = 0; i < STRCACHE_N; i++)
106 for (j = 0; j < STRCACHE_M; j++) {
107 if (iswhite(g->strcache[i][j])) /* will entry be collected? */
108 g->strcache[i][j] = g->memerrmsg; /* replace it with something fixed */
109 }
110}
111
112
113/*

Callers 1

atomicFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected