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

Function lua_insert

lib/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

tolua_pushusertypeFunction · 0.85
tolua_typenameFunction · 0.85
lua_isusertableFunction · 0.85
mapsuperFunction · 0.85
set_uboxFunction · 0.85
storeatuboxFunction · 0.85
class_index_eventFunction · 0.85
class_call_eventFunction · 0.85
dbvm_do_rowsFunction · 0.85
db_do_rowsFunction · 0.85
docallFunction · 0.85
loadlineFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected