MCPcopy Create free account
hub / github.com/cuberite/cuberite / lua_remove

Function lua_remove

lib/lua/src/lapi.c:180–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179
180LUA_API void lua_remove (lua_State *L, int idx) {
181 StkId p;
182 lua_lock(L);
183 p = index2adr(L, idx);
184 api_checkvalidindex(L, p);
185 while (++p < L->top) setobjs2s(L, p-1, p);
186 L->top--;
187 lua_unlock(L);
188}
189
190
191LUA_API void lua_insert (lua_State *L, int idx) {

Callers 15

tolua_pushusertypeFunction · 0.85
class_index_eventFunction · 0.85
class_newindex_eventFunction · 0.85
do_operatorFunction · 0.85
class_eq_eventFunction · 0.85
docallFunction · 0.85
loadlineFunction · 0.85
luaL_getmetafieldFunction · 0.85
luaI_openlibFunction · 0.85
luaL_findtableFunction · 0.85
errfileFunction · 0.85
luaL_loadfileFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected