MCPcopy Create free account
hub / github.com/cloudwu/skynet / lua_pushvalue

Function lua_pushvalue

3rd/lua/lapi.c:270–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270LUA_API void lua_pushvalue (lua_State *L, int idx) {
271 lua_lock(L);
272 setobj2s(L, L->top.p, index2value(L, idx));
273 api_incr_top(L);
274 lua_unlock(L);
275}
276
277
278

Callers 15

timing_enableFunction · 0.85
timing_totalFunction · 0.85
timing_resumeFunction · 0.85
luaB_cocreateFunction · 0.85
luaB_cowrapFunction · 0.85
lstartFunction · 0.85
lstopFunction · 0.85
init_profileFunction · 0.85
luaL_setfuncsFunction · 0.85
foldcapFunction · 0.85
numcapFunction · 0.85
runtimecapFunction · 0.85

Calls 1

index2valueFunction · 0.85

Tested by 3

trefFunction · 0.68
runCFunction · 0.68
sethookauxFunction · 0.68