MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaS_clearcache

Function luaS_clearcache

3rd/lua-5.4.3/src/lstring.c:110–117  ·  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

108** a non-collectable string.)
109*/
110void luaS_clearcache (global_State *g) {
111 int i, j;
112 for (i = 0; i < STRCACHE_N; i++)
113 for (j = 0; j < STRCACHE_M; j++) {
114 if (iswhite(g->strcache[i][j])) /* will entry be collected? */
115 g->strcache[i][j] = g->memerrmsg; /* replace it with something fixed */
116 }
117}
118
119
120/*

Callers 1

atomicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected