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

Function lua_pushvalue

app/redis-6.2.6/deps/lua/src/lapi.c:228–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226
227
228LUA_API void lua_pushvalue (lua_State *L, int idx) {
229 lua_lock(L);
230 setobj2s(L, L->top, index2adr(L, idx));
231 api_incr_top(L);
232 lua_unlock(L);
233}
234
235
236

Callers 15

tracebackFunction · 0.70
luaB_printFunction · 0.70
luaB_errorFunction · 0.70
getfuncFunction · 0.70
luaB_getfenvFunction · 0.70
luaB_setfenvFunction · 0.70
luaB_pairsFunction · 0.70
luaB_ipairsFunction · 0.70
generic_readerFunction · 0.70
luaB_tostringFunction · 0.70
luaB_newproxyFunction · 0.70
luaB_cocreateFunction · 0.70

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected