Home
last modified time | relevance | path

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

12

/freebsd-13.1/stand/liblua/
H A Dlutils.c218 nargs = lua_gettop(L); in lua_openfile()
267 if (lua_gettop(L) < 1 || lua_gettop(L) > 2) { in lua_readfile()
281 if (lua_gettop(L) == 2) in lua_readfile()
314 nargs = lua_gettop(L); in lua_writefile()
362 nargs = lua_gettop(L); in lua_term_putimage()
406 nargs = lua_gettop(L); in lua_fb_putimage()
437 nargs = lua_gettop(L); in lua_fb_setpixel()
455 nargs = lua_gettop(L); in lua_fb_line()
476 nargs = lua_gettop(L); in lua_fb_bezier()
499 nargs = lua_gettop(L); in lua_fb_drawrect()
[all …]
H A Dlpager.c51 for (i = 1; i <= lua_gettop(L); i++) { in lpager_output()
/freebsd-13.1/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()
H A Dlstrlib.c163 int n = lua_gettop(L); /* number of arguments */ in str_char()
904 int top = lua_gettop(L); in str_format()
/freebsd-13.1/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()
819 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
834 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
1072 VERIFY0(lua_gettop(state)); in zcp_eval()
1075 VERIFY0(lua_gettop(state)); in zcp_eval()
1078 VERIFY0(lua_gettop(state)); in zcp_eval()
1084 VERIFY0(lua_gettop(state)); in zcp_eval()
1102 VERIFY0(lua_gettop(state)); in zcp_eval()
1109 VERIFY3U(1, ==, lua_gettop(state)); in zcp_eval()
[all …]
/freebsd-13.1/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()
389 return lua_gettop(L) - 1; in dofilecont()
405 return lua_gettop(L); /* return all arguments */ in luaB_assert()
417 int n = lua_gettop(L); in luaB_select()
446 return lua_gettop(L) - (int)extra; /* return all results */ in finishpcall()
455 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall); in luaB_pcall()
467 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()
110 return lua_yield(L, lua_gettop(L)); in luaB_yield()
134 else if (lua_gettop(co) == 0) in auxstatus()
H A Dlua.c134 int base = lua_gettop(L) - narg; /* function index */ in docall()
532 lua_assert(lua_gettop(L) == 1); in loadline()
541 int n = lua_gettop(L); in l_print()
H A Dlmathlib.c206 int n = lua_gettop(L); /* number of arguments */ in math_min()
220 int n = lua_gettop(L); /* number of arguments */ in math_max()
561 switch (lua_gettop(L)) { /* check number of arguments */ in math_random()
H A Dltablib.c64 switch (lua_gettop(L)) { in tinsert()
182 int n = lua_gettop(L); /* number of elements to pack */ in tpack()
H A Dliolib.c358 int n = lua_gettop(L) - 1; /* number of arguments to read */ in aux_lines()
561 int nargs = lua_gettop(L) - 1; in g_read()
655 int nargs = lua_gettop(L) - arg; in g_write()
H A Dlutf8lib.c162 int n = lua_gettop(L); /* number of arguments */ in utfchar()
H A Dlauxlib.c80 int top = lua_gettop(L); in pushglobalfuncname()
759 int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */ in luaL_loadfilex()
/freebsd-13.1/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-13.1/libexec/flua/modules/
H A Dlposix.c51 n = lua_gettop(L); in lua_chmod()
71 n = lua_gettop(L); in lua_getpid()
H A Dlfs.c192 if (lua_gettop(L) != 1) { in lua_dir()
/freebsd-13.1/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-13.1/lib/clang/liblldb/
H A DLLDBWrapLua.cpp1079 if (lua_gettop(L)<a || lua_gettop(L)>b) \
2424 begin = lua_gettop(L); in SWIG_Lua_class_register()
3732 argc = lua_gettop(L); in _wrap_new_string()
4056 argc = lua_gettop(L); in _wrap_new_SBAddress()
4800 argc = lua_gettop(L); in _wrap_new_SBAttachInfo()
4986 argc = lua_gettop(L); in _wrap_SBAttachInfo_SetExecutable()
5124 argc = lua_gettop(L); in _wrap_SBAttachInfo_SetWaitForLaunch()
5876 argc = lua_gettop(L); in _wrap_new_SBBlock()
6401 argc = lua_gettop(L); in _wrap_SBBlock_GetVariables()
6630 argc = lua_gettop(L); in _wrap_new_SBBreakpoint()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/
H A DLua.cpp43 int n = lua_gettop(L); in lldb_print()
/freebsd-13.1/sys/contrib/openzfs/include/sys/lua/
H A Dlua.h145 LUA_API int (lua_gettop) (lua_State *L); variable
/freebsd-13.1/lib/flua/libjail/
H A Dlua_jail.c179 nargs = lua_gettop(L); in l_list()

12