MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_insert

Function lua_insert

Source/Misc/lua/src/lua.c:2040–2049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2038
2039
2040LUA_API void lua_insert (lua_State *L, int idx) {
2041StkId p;
2042StkId q;
2043lua_lock(L);
2044p = index2adr(L, idx);
2045api_checkvalidindex(L, p);
2046for (q = L->top; q>p; q--) setobjs2s(L, q, q-1);
2047setobjs2s(L, p, L->top);
2048lua_unlock(L);
2049}
2050
2051
2052LUA_API void lua_replace (lua_State *L, int idx) {

Callers 15

register_Method · 0.85
do_set_package_preloadFunction · 0.85
proxy_loaderFunction · 0.85
pcallFunction · 0.85
copy_member_tableFunction · 0.85
super_callbackMethod · 0.85
dispatch_operatorFunction · 0.85
lua_rawsetpFunction · 0.85
luaI_openlibFunction · 0.85
luaL_addvalueFunction · 0.85
luaB_setfenvFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected