MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / luaS_clearcache

Function luaS_clearcache

src/lstring.cpp:121–128  ·  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

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

Callers 1

atomicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected