MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_pushvalue

Function lua_pushvalue

xrepo/packages/l/lua/port/lua/src/lapi.c:274–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272
273
274LUA_API void lua_pushvalue (lua_State *L, int idx) {
275 lua_lock(L);
276 setobj2s(L, L->top, index2value(L, idx));
277 api_incr_top(L);
278 lua_unlock(L);
279}
280
281
282

Callers 15

luaB_errorFunction · 0.70
luaB_pairsFunction · 0.70
luaB_ipairsFunction · 0.70
load_auxFunction · 0.70
generic_readerFunction · 0.70
finishpcallFunction · 0.70
luaB_xpcallFunction · 0.70
luaopen_baseFunction · 0.70
math_minFunction · 0.70
math_maxFunction · 0.70
tonumFunction · 0.70
add_valueFunction · 0.70

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected