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

Function luaS_remove

Plugins/slua_unreal/External/lua/lstring.cpp:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152
153void luaS_remove (lua_State *L, TString *ts) {
154 stringtable *tb = &G(L)->strt;
155 TString **p = &tb->hash[lmod(ts->hash, tb->size)];
156 while (*p != ts) /* find previous element */
157 p = &(*p)->u.hnext;
158 *p = (*p)->u.hnext; /* remove element from its list */
159 tb->nuse--;
160}
161
162
163/*

Callers 1

freeobjFunction · 0.85

Calls 1

GFunction · 0.85

Tested by

no test coverage detected