MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / luaS_clearcache

Function luaS_clearcache

Plugins/slua_unreal/External/lua/lstring.cpp:102–109  ·  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

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

Callers 1

atomicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected