Home
last modified time | relevance | path

Searched refs:lua_gettop (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/libexec/flua/modules/
H A Dlposix.c32 narg = lua_gettop(L); in lua__exit()
45 narg = lua_gettop(L); in lua_basename()
68 n = lua_gettop(L); in lua_chmod()
91 n = lua_gettop(L); in lua_chown()
144 n = lua_gettop(L); in lua_pclose()
174 n = lua_gettop(L); in lua_uname()
191 n = lua_gettop(L); in lua_uname()
224 narg = lua_gettop(L); in lua_fork()
247 narg = lua_gettop(L); in lua_getpid()
267 narg = lua_gettop( in lua_pipe()
[all...]
H A Dlfbsd.c73 int n = lua_gettop(L); in lua_exec()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlcorolib.c23 if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) { in auxresume()
30 int nres = lua_gettop(co); in auxresume()
50 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
66 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
97 return lua_yield(L, lua_gettop(L)); in luaB_yield()
114 else if (lua_gettop(co) == 0) in luaB_costatus()
H A Dlbaselib.c229 return lua_gettop(L); in luaB_assert()
234 int n = lua_gettop(L); in luaB_select()
H A Dltablib.c42 switch (lua_gettop(L)) { in tinsert()
118 int n = lua_gettop(L); /* number of elements to pack */ in pack()
H A Dlauxlib.c61 int top = lua_gettop(L); in pushglobalfuncname()
112 int top = lua_gettop(L); in luaL_traceback()
131 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
134 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
/freebsd/stand/liblua/
H A Dgfx_utils.c53 nargs = lua_gettop(L); in lua_term_putimage()
97 nargs = lua_gettop(L); in lua_fb_putimage()
128 nargs = lua_gettop(L); in lua_fb_setpixel()
146 nargs = lua_gettop(L); in lua_fb_line()
167 nargs = lua_gettop(L); in lua_fb_bezier()
190 nargs = lua_gettop(L); in lua_fb_drawrect()
211 nargs = lua_gettop(L); in lua_term_drawrect()
H A Dlutils.c45 int argc = lua_gettop(L); in lua_command()
136 if (lua_gettop(L) != 1) { in lua_interpret()
255 nargs = lua_gettop(L); in lua_openfile()
282 if (lua_gettop(L) != 1) { in lua_closefile()
304 if (lua_gettop(L) < 1 || lua_gettop(L) > 2) { in lua_readfile()
318 if (lua_gettop(L) == 2) in lua_readfile()
351 nargs = lua_gettop(L); in lua_writefile()
H A Dlpager.c48 for (i = 1; i <= lua_gettop(L); i++) { in lpager_output()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzcp.c140 VERIFY3U(1, ==, lua_gettop(state)); in zcp_error_handler()
444 VERIFY3U(1, ==, lua_gettop(state)); in zcp_convert_return_values()
818 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
833 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
884 int return_count = lua_gettop(state); in zcp_eval_impl()
909 VERIFY3U(1, ==, lua_gettop(state)); in zcp_eval_impl()
934 VERIFY3U(1, ==, lua_gettop(state)); in zcp_eval_impl()
996 VERIFY3U(3, ==, lua_gettop(ri->zri_state)); in zcp_eval_sync()
1011 VERIFY3U(3, ==, lua_gettop(ri->zri_state)); in zcp_eval_open()
1071 VERIFY0(lua_gettop(state)); in zcp_eval()
[all …]
/freebsd/contrib/lutok/
H A Dstate_test.cpp313 ATF_REQUIRE_EQ(2, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
579 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
591 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
621 ATF_REQUIRE_EQ(3, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
629 ATF_REQUIRE_EQ(3, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
720 ATF_REQUIRE_EQ(2, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
734 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
745 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
748 ATF_REQUIRE_EQ(2, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
832 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
[all …]
H A Dstate.cpp287 assert(lua_gettop(_pimpl->lua_state) == 0); in close()
370 assert(lua_gettop(_pimpl->lua_state) >= 2); in get_table()
386 return lua_gettop(_pimpl->lua_state); in get_top()
555 assert(lua_gettop(_pimpl->lua_state) >= 1); in next()
656 assert(count <= lua_gettop(_pimpl->lua_state)); in pop()
658 assert(lua_gettop(_pimpl->lua_state) >= 0); in pop()
/freebsd/contrib/lua/src/
H A Dlcorolib.c59 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
75 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
113 return lua_yield(L, lua_gettop(L)); in luaB_yield()
137 else if (lua_gettop(co) == 0) in auxstatus()
H A Dlbaselib.c25 int n = lua_gettop(L); /* number of arguments */ in luaB_print()
46 int n = lua_gettop(L); /* number of arguments */ in luaB_warn()
411 return lua_gettop(L) - 1; in dofilecont()
427 return lua_gettop(L); /* return all arguments */ in luaB_assert()
439 int n = lua_gettop(L); in luaB_select()
468 return lua_gettop(L) - (int)extra; /* return all results */ in finishpcall()
477 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall); in luaB_pcall()
489 int n = lua_gettop(L); in luaB_xpcall()
H A Dlua.c155 int base = lua_gettop(L) - narg; /* function index */ in docall()
569 lua_assert(lua_gettop(L) == 1); in loadline()
578 int n = lua_gettop(L); in l_print()
H A Dltests.c816 int n = lua_gettop(L); in printstack()
1054 int level = lua_gettop(L); in tref()
1059 lua_assert(lua_gettop(L) == level+1); /* +1 for result */ in tref()
1064 int level = lua_gettop(L); in getref()
1067 lua_assert(lua_gettop(L) == level+1); in getref()
1072 int level = lua_gettop(L); in unref()
1075 lua_assert(lua_gettop(L) == level); in unref()
1317 res = lua_gettop(L1); in getnum_aux()
1475 lua_pushinteger(L1, lua_gettop(L1)); in runC()
1758 if (n == 0) n = lua_gettop(fs); in runC()
[all …]
H A Dlmathlib.c207 int n = lua_gettop(L); /* number of arguments */ in math_min()
221 int n = lua_gettop(L); /* number of arguments */ in math_max()
562 switch (lua_gettop(L)) { /* check number of arguments */ in math_random()
H A Dltablib.c65 switch (lua_gettop(L)) { in tinsert()
183 int n = lua_gettop(L); /* number of elements to pack */ in tpack()
H A Dliolib.c364 int n = lua_gettop(L) - 1; /* number of arguments to read */ in aux_lines()
567 int nargs = lua_gettop(L) - 1; in g_read()
661 int nargs = lua_gettop(L) - arg; in g_write()
H A Dlutf8lib.c166 int n = lua_gettop(L); /* number of arguments */ in utfchar()
/freebsd/contrib/libucl/lua/
H A Dlua_ucl.c336 idx = lua_gettop (L) + idx + 1; in ucl_object_lua_fromtable()
418 obj = ucl_object_lua_fromelt (L, lua_gettop (L), flags); in ucl_object_lua_fromtable()
440 obj = ucl_object_lua_fromelt (L, lua_gettop (L) - 1, flags); in ucl_object_lua_fromtable()
621 if (lua_gettop (L) >= 1) { in lua_ucl_parser_init()
1086 if (lua_gettop (L) > 1) { in lua_ucl_object_tostring()
1128 if (lua_gettop (L) > 2) { in lua_ucl_object_validate()
1141 if (lua_gettop (L) > 3) { in lua_ucl_object_validate()
1332 if (lua_gettop (L) > 1) { in lua_ucl_to_json()
1408 if (lua_gettop (L) > 1) { in lua_ucl_to_format()
/freebsd/lib/clang/liblldb/
H A DLLDBWrapLua.cpp942 # define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1)
1102 if (lua_gettop(L)<a || lua_gettop(L)>b) \
1103 …{SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L))…
1177 target_table = lua_gettop(L); in SWIG_Lua_elua_emulate_register()
1186 parsed_tables_array = lua_gettop(L); in SWIG_Lua_elua_emulate_register()
1190 const int SWIGUNUSED pairs_start = lua_gettop(L); in SWIG_Lua_elua_emulate_register()
1250 assert(lua_gettop(L) == pairs_start + 2); in SWIG_Lua_elua_emulate_register()
1254 assert(lua_gettop(L) == target_table); in SWIG_Lua_elua_emulate_register()
1273 assert(lua_gettop(L) == 3); /* object | function | object again */ in SWIG_Lua_emulate_elua_getmetatable()
1278 assert(lua_gettop(L) == 2); in SWIG_Lua_emulate_elua_getmetatable()
[all …]
/freebsd/libexec/flua/libfreebsd/kenv/
H A Dkenv.c26 n = lua_gettop(L); in lua_kenv_get()
/freebsd/libexec/flua/libhash/
H A Dlhash.c116 top = lua_gettop(L); // data -- data in lua_sha256()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/
H A DLua.cpp20 int n = lua_gettop(L); in lldb_print()

12