MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_insert

Function lua_insert

deps/lua/src/lapi.c:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

docallFunction · 0.85
loadlineFunction · 0.85
dottyFunction · 0.85
handle_scriptFunction · 0.85
luaB_setfenvFunction · 0.85
load_auxFunction · 0.85
luaB_pcallFunction · 0.85
luaB_xpcallFunction · 0.85
luaB_coresumeFunction · 0.85
luaB_auxwrapFunction · 0.85
luaI_openlibFunction · 0.85
luaL_addvalueFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected