MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_insert

Function lua_insert

freebsd/contrib/openzfs/module/lua/lapi.c:190–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

findfieldFunction · 0.70
luaL_addvalueFunction · 0.70
luaL_openlibFunction · 0.70
luaB_coresumeFunction · 0.70
luaB_auxwrapFunction · 0.70

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected