MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_insert

Function lua_insert

lua/lapi.c: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

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
l_datetime_helperFunction · 0.85
luaI_openlibFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected