MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_pushvalue

Function lua_pushvalue

depends/lua/src/lapi.c:237–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236
237LUA_API void lua_pushvalue (lua_State *L, int idx) {
238 lua_lock(L);
239 setobj2s(L, L->top, index2addr(L, idx));
240 api_incr_top(L);
241 lua_unlock(L);
242}
243
244
245

Callers 15

lua_print_fmtFunction · 0.85
dfhack_lineeditFunction · 0.85
error_tostringFunction · 0.85
dfhack_errorFunction · 0.85
doAssignDFObjectFunction · 0.85
SafeCallStringMethod · 0.85
RunCoreQueryLoopMethod · 0.85
dfhack_cleanup_contFunction · 0.85
dfhack_event_indexFunction · 0.85
dfhack_event_nextFunction · 0.85
dfhack_event_pairsFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected