Lines Matching refs:lua_pushvalue
37 lua_pushvalue(L, -1); /* function to be called */ in luaB_print()
38 lua_pushvalue(L, i); /* value to print */ in luaB_print()
86 lua_pushvalue(L, 1); in luaB_error()
118 if (lua_isfunction(L, 1)) lua_pushvalue(L, 1); in getfunc()
136 lua_pushvalue(L, LUA_GLOBALSINDEX); /* return the thread's global env. */ in luaB_getfenv()
146 lua_pushvalue(L, 2); in luaB_setfenv()
240 lua_pushvalue(L, lua_upvalueindex(1)); /* return generator, */ in luaB_pairs()
241 lua_pushvalue(L, 1); /* state, */ in luaB_pairs()
259 lua_pushvalue(L, lua_upvalueindex(1)); /* return generator, */ in luaB_ipairs()
260 lua_pushvalue(L, 1); /* state, */ in luaB_ipairs()
300 lua_pushvalue(L, 1); /* get function */ in generic_reader()
405 lua_pushvalue(L, 1); in luaB_tostring()
428 lua_pushvalue(L, -1); /* ... and mark `m' as a valid metatable */ in luaB_newproxy()
580 lua_pushvalue(L, 1); /* move function to top */ in luaB_cocreate()
628 lua_pushvalue(L, LUA_GLOBALSINDEX); in base_open()
639 lua_pushvalue(L, -1); /* `w' will be its own metatable */ in base_open()