Home
last modified time | relevance | path

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

/netbsd-src/external/mit/lua/dist/src/
H A Dlbaselib.c29 int n = lua_gettop(L); /* number of arguments */ in luaB_print()
50 int n = lua_gettop(L); /* number of arguments */ in luaB_warn()
418 return lua_gettop(L) - 1; in dofilecont()
435 return lua_gettop(L); /* return all arguments */ in luaB_assert()
447 int n = lua_gettop(L); in luaB_select()
476 return lua_gettop(L) - (int)extra; /* return all results */ in finishpcall()
485 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall); in luaB_pcall()
497 int n = lua_gettop(L); in luaB_xpcall()
H A Dlcorolib.c63 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
79 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
117 return lua_yield(L, lua_gettop(L)); in luaB_yield()
141 else if (lua_gettop(co) == 0) in auxstatus()
H A Dlua.c157 int base = lua_gettop(L) - narg; /* function index */ in docall()
571 lua_assert(lua_gettop(L) == 1); in loadline()
580 int n = lua_gettop(L); in l_print()
H A Dlmathlib.c209 int n = lua_gettop(L); /* number of arguments */ in math_min()
223 int n = lua_gettop(L); /* number of arguments */ in math_max()
564 switch (lua_gettop(L)) { /* check number of arguments */ in math_random()
H A Dltablib.c69 switch (lua_gettop(L)) { in tinsert()
187 int n = lua_gettop(L); /* number of elements to pack */ in tpack()
H A Dliolib.c366 int n = lua_gettop(L) - 1; /* number of arguments to read */ in aux_lines()
569 int nargs = lua_gettop(L) - 1; in g_read()
663 int nargs = lua_gettop(L) - arg; in g_write()
H A Dlutf8lib.c170 int n = lua_gettop(L); /* number of arguments */ in utfchar()
H A Dlauxlib.c86 int top = lua_gettop(L); in pushglobalfuncname()
796 int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */ in luaL_loadfilex()
H A Dlua.h183 LUA_API int (lua_gettop) (lua_State *L); variable
H A Dlstrlib.c200 int n = lua_gettop(L); /* number of arguments */ in str_char()
1288 int top = lua_gettop(L); in str_format()
H A Dlapi.c182 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() function
/netbsd-src/external/bsd/lutok/dist/
H A Dstate_test.cpp331 ATF_REQUIRE_EQ(2, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
688 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
700 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
730 ATF_REQUIRE_EQ(3, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
738 ATF_REQUIRE_EQ(3, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
814 ATF_REQUIRE_EQ(2, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
828 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
839 ATF_REQUIRE_EQ(1, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
842 ATF_REQUIRE_EQ(2, lua_gettop(raw(state))); in ATF_TEST_CASE_BODY()
926 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()
644 assert(count <= lua_gettop(_pimpl->lua_state)); in pop()
646 assert(lua_gettop(_pimpl->lua_state) >= 0); in pop()
/netbsd-src/lib/lua/gpio/
H A Dgpio.c217 if (lua_gettop(L) > 4) in gpio_attach()
/netbsd-src/lib/lua/sqlite/
H A Dsqlite.c87 if (lua_gettop(L) > 2) in sqlite_open()