Home
last modified time | relevance | path

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

/minix3/external/mit/lua/dist/src/
H A Dlcorolib.c38 if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) { in auxresume()
45 int nres = lua_gettop(co); in auxresume()
64 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
80 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
111 return lua_yield(L, lua_gettop(L)); in luaB_yield()
127 else if (lua_gettop(co) == 0) in luaB_costatus()
H A Dlbaselib.c29 int n = lua_gettop(L); /* number of arguments */ in luaB_print()
381 return lua_gettop(L) - 1; in dofilecont()
398 return lua_gettop(L); /* return all arguments */ in luaB_assert()
410 int n = lua_gettop(L); in luaB_select()
439 return lua_gettop(L) - (int)extra; /* return all results */ in finishpcall()
448 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall); in luaB_pcall()
460 int n = lua_gettop(L); in luaB_xpcall()
H A Dlbitlib.c46 int i, n = lua_gettop(L); in andaux()
69 int i, n = lua_gettop(L); in b_or()
79 int i, n = lua_gettop(L); in b_xor()
H A Dlmathlib.c215 int n = lua_gettop(L); /* number of arguments */ in math_min()
229 int n = lua_gettop(L); /* number of arguments */ in math_max()
249 switch (lua_gettop(L)) { /* check number of arguments */ in math_random()
H A Dlua.c200 int base = lua_gettop(L) - narg; /* function index */ in docall()
384 lua_assert(lua_gettop(L) == 1); in loadline()
393 int n = lua_gettop(L); in l_print()
H A Dlauxlib.c80 int top = lua_gettop(L); in pushglobalfuncname()
134 int top = lua_gettop(L); in luaL_traceback()
153 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
156 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
659 int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */ in luaL_loadfilex()
H A Dltablib.c84 switch (lua_gettop(L)) { in tinsert()
200 int n = lua_gettop(L); /* number of elements to pack */ in pack()
H A Dliolib.c324 int n = lua_gettop(L) - 1; /* number of arguments to read */ in aux_lines()
510 int nargs = lua_gettop(L) - 1; in g_read()
601 int nargs = lua_gettop(L) - arg; in g_write()
H A Dlutf8lib.c143 int n = lua_gettop(L); /* number of arguments */ in utfchar()
H A Dlua.h173 LUA_API int (lua_gettop) (lua_State *L); variable
H A Dloadlib.c638 int lastarg = lua_gettop(L); /* last parameter */ in ll_module()
H A Dlstrlib.c168 int n = lua_gettop(L); /* number of arguments */ in str_char()
964 int top = lua_gettop(L); in str_format()
H A Dlapi.c171 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() function
/minix3/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()
/minix3/lib/lua/gpio/
H A Dgpio.c217 if (lua_gettop(L) > 4) in gpio_attach()
/minix3/lib/lua/sqlite/
H A Dsqlite.c87 if (lua_gettop(L) > 2) in sqlite_open()