MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_insert

Function lua_insert

other_src/lua/src/lapi.cpp:192–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191
192LUA_API void lua_insert (lua_State *L, int idx) {
193 StkId p;
194 StkId q;
195 lua_lock(L);
196 p = index2adr(L, idx);
197 api_checkvalidindex(L, p);
198 for (q = L->top; q>p; q--) setobjs2s(L, q, q-1);
199 setobjs2s(L, p, L->top);
200 lua_unlock(L);
201}
202
203
204LUA_API void lua_replace (lua_State *L, int idx) {

Callers 15

ll_loadlibFunction · 0.70
fix_lFunction · 0.70
unm_lFunction · 0.70
foldcapFunction · 0.70
pushcaptureFunction · 0.70
luaI_openlibFunction · 0.70
luaL_addvalueFunction · 0.70
auxupvalueFunction · 0.70
luaB_setfenvFunction · 0.70
load_auxFunction · 0.70
luaB_pcallFunction · 0.70
luaB_xpcallFunction · 0.70

Calls 1

index2adrFunction · 0.70

Tested by

no test coverage detected