MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_insert

Function lua_insert

third-party/lua-5.2.4/src/lapi.c:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192
193LUA_API void lua_insert (lua_State *L, int idx) {
194 StkId p;
195 StkId q;
196 lua_lock(L);
197 p = index2addr(L, idx);
198 api_checkstackindex(L, idx, p);
199 for (q = L->top; q > p; q--) /* use L->top as a temporary */
200 setobjs2s(L, q, q - 1);
201 setobjs2s(L, p, L->top);
202 lua_unlock(L);
203}
204
205
206static void moveto (lua_State *L, TValue *fr, int idx) {

Callers 15

docallFunction · 0.70
loadlineFunction · 0.70
dottyFunction · 0.70
handle_scriptFunction · 0.70
load_auxFunction · 0.70
luaB_pcallFunction · 0.70
findfieldFunction · 0.70
luaL_addvalueFunction · 0.70
luaL_openlibFunction · 0.70
luaB_coresumeFunction · 0.70
luaB_auxwrapFunction · 0.70
ll_loadlibFunction · 0.70

Calls 1

index2addrFunction · 0.70

Tested by

no test coverage detected