Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/module/lua/
H A Dlcorolib.c24 if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) { in auxresume()
31 int nres = lua_gettop(co); in auxresume()
51 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
67 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
98 return lua_yield(L, lua_gettop(L)); in luaB_yield()
115 else if (lua_gettop(co) == 0) in luaB_costatus()
H A Dlbaselib.c230 return lua_gettop(L); in luaB_assert()
235 int n = lua_gettop(L); in luaB_select()
H A Dltablib.c43 switch (lua_gettop(L)) { in tinsert()
119 int n = lua_gettop(L); /* number of elements to pack */ in pack()
H A Dlauxlib.c62 int top = lua_gettop(L); in pushglobalfuncname()
113 int top = lua_gettop(L); in luaL_traceback()
132 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
135 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.c141 VERIFY3U(1, ==, lua_gettop(state)); in zcp_error_handler()
445 VERIFY3U(1, ==, lua_gettop(state)); in zcp_convert_return_values()
819 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
834 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
885 int return_count = lua_gettop(state); in zcp_eval_impl()
910 VERIFY3U(1, ==, lua_gettop(state)); in zcp_eval_impl()
935 VERIFY3U(1, ==, lua_gettop(state)); in zcp_eval_impl()
997 VERIFY3U(3, ==, lua_gettop(ri->zri_state)); in zcp_eval_sync()
1012 VERIFY3U(3, ==, lua_gettop(ri->zri_state)); in zcp_eval_open()
1072 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 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 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 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 Dlua.c156 int base = lua_gettop(L) - narg; /* function index */ in docall()
577 lua_assert(lua_gettop(L) == 1); in loadline()
586 int n = lua_gettop(L); in l_print()
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()
579 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.c367 int n = lua_gettop(L) - 1; /* number of arguments to read */ in aux_lines()
570 int nargs = lua_gettop(L) - 1; in g_read()
665 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.c343 idx = lua_gettop (L) + idx + 1; in ucl_object_lua_fromtable()
424 obj = ucl_object_lua_fromelt (L, lua_gettop (L), flags); in ucl_object_lua_fromtable()
446 obj = ucl_object_lua_fromelt (L, lua_gettop (L) - 1, flags); in ucl_object_lua_fromtable()
655 if (lua_gettop (L) >= 1) { in lua_ucl_parser_init()
1130 if (lua_gettop (L) > 1) { in lua_ucl_object_tostring()
1172 if (lua_gettop (L) > 2) { in lua_ucl_object_validate()
1185 if (lua_gettop (L) > 3) { in lua_ucl_object_validate()
1376 if (lua_gettop (L) > 1) { in lua_ucl_to_json()
1452 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.c28 n = lua_gettop(L); in lua_kenv_get()
/freebsd/libexec/flua/libhash/
H A Dlhash.c118 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()
/freebsd/libexec/flua/lfbsd/
H A Dlfbsd.c97 int n = lua_gettop(L); in lua_exec()
/freebsd/libexec/flua/lfs/
H A Dlfs.c191 if (lua_gettop(L) != 1) { in lua_dir()

12