Home
last modified time | relevance | path

Searched refs:lua_pushvalue (Results 1 – 17 of 17) sorted by relevance

/netbsd-src/external/bsd/lutok/dist/
H A Dstate.cpp321 lua_pushvalue(_pimpl->lua_state, registry_index); in get_global_table()
326 lua_pushvalue(_pimpl->lua_state, LUA_GLOBALSINDEX); in get_global_table()
372 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in get_table()
373 lua_pushvalue(_pimpl->lua_state, -3); in get_table()
557 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in next()
558 lua_pushvalue(_pimpl->lua_state, -3); in next()
729 lua_pushvalue(_pimpl->lua_state, index); in push_value()
769 lua_pushvalue(_pimpl->lua_state, -3); in set_global()
798 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in set_table()
799 lua_pushvalue(_pimpl->lua_state, -4); in set_table()
[all …]
H A Dstate_test.cpp1083 lua_pushvalue(raw(state), lutok::registry_index); in ATF_TEST_CASE_BODY()
/netbsd-src/external/mit/lua/dist/src/
H A Dlbaselib.c123 lua_pushvalue(L, 1); in luaB_error()
292 lua_pushvalue(L, 1); /* state, */ in luaB_pairs()
296 lua_pushvalue(L, 1); /* argument 'self' to metamethod */ in luaB_pairs()
321 lua_pushvalue(L, 1); /* state */ in luaB_ipairs()
330 lua_pushvalue(L, envidx); /* environment for loaded function */ in load_aux()
379 lua_pushvalue(L, 1); /* get function */ in generic_reader()
472 lua_pushvalue(L, -2); /* error message */ in finishpcall()
500 lua_pushvalue(L, 1); /* function */ in luaB_xpcall()
554 lua_pushvalue(L, -1); in luaopen_base()
H A Dldblib.c46 lua_pushvalue(L, LUA_REGISTRYINDEX); in db_getregistry()
162 lua_pushvalue(L, arg + 1); /* move function to 'L1' stack */ in db_getinfo()
212 lua_pushvalue(L, arg + 1); /* push function */ in db_getlocal()
387 lua_pushvalue(L, -1); in db_sethook()
392 lua_pushvalue(L, arg + 1); /* value (hook function) */ in db_sethook()
446 lua_pushvalue(L, arg + 1); /* return it untouched */ in db_traceback()
H A Dltablib.c146 lua_pushvalue(L, tt); /* return destination table */ in tmove()
284 lua_pushvalue(L, 2); /* push function */ in sort_comp()
285 lua_pushvalue(L, a-1); /* -1 to compensate function */ in sort_comp()
286 lua_pushvalue(L, b-2); /* -2 to compensate function and 'a' */ in sort_comp()
382 lua_pushvalue(L, -1); /* push Pivot */ in auxsort()
H A Dliolib.c327 lua_pushvalue(L, 1); in g_iofile()
368 lua_pushvalue(L, 1); /* file */ in aux_lines()
407 lua_pushvalue(L, 1); /* file is the to-be-closed variable (4th result) */ in io_lines()
640 lua_pushvalue(L, lua_upvalueindex(3 + i)); in io_readline()
652 lua_pushvalue(L, lua_upvalueindex(1)); /* push file at index 1 */ in io_readline()
694 lua_pushvalue(L, 1); /* push file at the stack top (to be returned) */ in f_write()
814 lua_pushvalue(L, -1); in createstdfile()
H A Dloadlib.c354 lua_pushvalue(L, -1); in addtoclib()
670 lua_pushvalue(L, 1); /* name is 1st argument to module loader */ in ll_require()
671 lua_pushvalue(L, -3); /* loader data is 2nd argument */ in ll_require()
725 lua_pushvalue(L, -2); /* set 'package' as upvalue for all searchers */ in createsearcherstable()
764 lua_pushvalue(L, -2); /* set 'package' as upvalue for next lib */ in luaopen_package()
H A Dlauxlib.c328 lua_pushvalue(L, -1); in luaL_newmetatable()
885 lua_pushvalue(L, obj); in luaL_callmeta()
923 lua_pushvalue(L, idx); in luaL_tolstring()
959 lua_pushvalue(L, -nup); in luaL_setfuncs()
979 lua_pushvalue(L, -1); /* copy to be left at top */ in luaL_getsubtable()
1001 lua_pushvalue(L, -1); /* make copy of module (call result) */ in luaL_requiref()
1006 lua_pushvalue(L, -1); /* copy of module */ in luaL_requiref()
H A Dlcorolib.c103 lua_pushvalue(L, 1); /* move function to top */ in luaB_cocreate()
H A Dlmathlib.c217 lua_pushvalue(L, imin); in math_min()
231 lua_pushvalue(L, imax); in math_max()
H A Dlstrlib.c270 lua_pushvalue(L, arg); in tonum()
920 lua_pushvalue(L, 3); /* push the function */ in add_value()
984 lua_pushvalue(L, 1); /* return original string */ in str_gsub()
1887 lua_pushvalue(L, -2); /* copy table */ in createmetatable()
1890 lua_pushvalue(L, -2); /* get string library */ in createmetatable()
H A Dlutf8lib.c267 lua_pushvalue(L, 1); in iter_codes()
H A Dlua.h185 LUA_API void (lua_pushvalue) (lua_State *L, int idx); variable
H A Dlapi.c276 LUA_API void lua_pushvalue (lua_State *L, int idx) { in lua_pushvalue() function
/netbsd-src/lib/lua/sqlite/
H A Dsqlite.c473 lua_pushvalue(L, -2); in luaopen_sqlite()
491 lua_pushvalue(L, -2); in luaopen_sqlite()
/netbsd-src/lib/lua/gpio/
H A Dgpio.c304 lua_pushvalue(L, -2); in luaopen_gpio()
/netbsd-src/libexec/httpd/
H A Dlua-bozo.c124 lua_pushvalue(L, 2); in lua_register_handler()