Home
last modified time | relevance | path

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

/f-stack/freebsd/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()
H A Dlapi.c157 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() function
1314 EXPORT_SYMBOL(lua_gettop);
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlbaselib.c32 int n = lua_gettop(L); /* number of arguments */ in luaB_print()
327 int n = lua_gettop(L); in luaB_dofile()
330 return lua_gettop(L) - n; in luaB_dofile()
338 return lua_gettop(L); in luaB_assert()
359 int n = lua_gettop(L); in luaB_select()
380 return lua_gettop(L); /* return status + all results */ in luaB_pcall()
499 else if (lua_gettop(co) == 0) in costatus()
530 int nres = lua_gettop(co); in auxresume()
547 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
563 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
[all …]
H A Dlmathlib.c154 int n = lua_gettop(L); /* number of arguments */ in math_min()
168 int n = lua_gettop(L); /* number of arguments */ in math_max()
185 switch (lua_gettop(L)) { /* check number of arguments */ in math_random()
H A Dlua.c98 int base = lua_gettop(L) - narg; /* function index */ in docall()
223 if (status == 0 && lua_gettop(L) > 0) { /* any result to print? */ in dotty()
226 if (lua_pcall(L, lua_gettop(L)-1, 0, 0) != 0) in dotty()
H A Dlua_cmsgpack.c436 stacktop = lua_gettop(L); in table_is_an_array()
513 int nargs = lua_gettop(L); in mp_pack()
856 lua_pop(L, lua_gettop(L)-1); in mp_unpack_one()
864 lua_pop(L, lua_gettop(L)-1); in mp_unpack_limit()
872 argc = lua_gettop(L); in mp_safe()
880 total_results = lua_gettop(L); in mp_safe()
H A Dldblib.c334 if (lua_gettop(L) == arg) in db_errorfb()
368 lua_concat(L, lua_gettop(L) - arg); in db_errorfb()
370 lua_concat(L, lua_gettop(L) - arg); in db_errorfb()
H A Dliolib.c260 aux_lines(L, lua_gettop(L), 1); in io_lines()
335 int nargs = lua_gettop(L) - 1; in g_read()
414 int nargs = lua_gettop(L) - 1; in g_write()
H A Dlua_cjson.c210 luaL_argcheck(l, lua_gettop(l) <= args, args + 1, in json_arg_init()
213 while (lua_gettop(l) < args) in json_arg_init()
711 luaL_argcheck(l, lua_gettop(l) == 1, 1, "expected 1 argument"); in json_encode()
1259 luaL_argcheck(l, lua_gettop(l) == 1, 1, "expected 1 argument"); in json_decode()
1323 luaL_argcheck(l, lua_gettop(l) == 1, 1, "expected 1 argument"); in json_protect_conversion()
H A Dlua_bit.c101 for (i = lua_gettop(L); i > 1; i--) b opr barg(L, i); BRET(b) }
H A Dltablib.c93 switch (lua_gettop(L)) { in tinsert()
H A Dlauxlib.c33 lua_gettop(L) + (i) + 1)
556 int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */ in luaL_loadfile()
H A Dlua.h120 LUA_API int (lua_gettop) (lua_State *L); variable
H A Dlstrlib.c126 int n = lua_gettop(L); /* number of arguments */ in str_char()
757 int top = lua_gettop(L); in str_format()
H A Dloadlib.c546 int loaded = lua_gettop(L) + 1; /* index of _LOADED table */ in ll_module()
H A Dlapi.c159 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() function
/f-stack/freebsd/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()
1071 VERIFY0(lua_gettop(state)); in zcp_eval()
1074 VERIFY0(lua_gettop(state)); in zcp_eval()
1077 VERIFY0(lua_gettop(state)); in zcp_eval()
1083 VERIFY0(lua_gettop(state)); in zcp_eval()
1101 VERIFY0(lua_gettop(state)); in zcp_eval()
1108 VERIFY3U(1, ==, lua_gettop(state)); in zcp_eval()
[all …]
/f-stack/app/redis-5.0.5/deps/lua/etc/
H A Dmin.c14 int n=lua_gettop(L); in print()
/f-stack/app/redis-5.0.5/src/
H A Dscripting.c349 int j, argc = lua_gettop(lua); in luaRedisGenericCommand()
669 int argc = lua_gettop(lua); in luaRedisSha1hexCommand()
693 if (lua_gettop(lua) != 1 || lua_type(lua,-1) != LUA_TSTRING) { in luaRedisReturnSingleFieldTable()
757 int argc = lua_gettop(lua); in luaRedisDebugCommand()
772 int argc = lua_gettop(lua); in luaRedisSetReplCommand()
794 int j, argc = lua_gettop(lua); in luaLogCommand()
1131 switch (lua_gettop(L)) { /* check number of arguments */ in redis_math_random()
/f-stack/freebsd/contrib/openzfs/include/sys/lua/
H A Dlua.h145 LUA_API int (lua_gettop) (lua_State *L); variable