Home
last modified time | relevance | path

Searched refs:luaL_argcheck (Results 1 – 19 of 19) sorted by relevance

/freebsd/libexec/flua/modules/
H A Dlposix.c33 luaL_argcheck(L, narg == 1, 1, "_exit takes exactly one argument"); in lua__exit()
46 luaL_argcheck(L, narg > 0, 1, "at least one argument required"); in lua_basename()
69 luaL_argcheck(L, n == 2, n > 2 ? 3 : n, in lua_chmod()
92 luaL_argcheck(L, n > 1, n, in lua_chown()
145 luaL_argcheck(L, n == 1, 1, in lua_pclose()
175 luaL_argcheck(L, n == 2 || n == 3, 4, "need 2 or 3 arguments"); in lua_uname()
192 luaL_argcheck(L, n == 0, 1, "too many arguments"); in lua_uname()
225 luaL_argcheck(L, narg > 0, 1, in lua_fork()
248 luaL_argcheck(L, narg == 0, 1, "too many arguments"); in lua_getpid()
268 luaL_argcheck( in lua_pipe()
[all...]
H A Dlfbsd.c57 luaL_argcheck(L, t == LUA_TSTRING, arg, "expected array of strings"); in luaL_checkarraystrings()
74 luaL_argcheck(L, n == 1, n > 1 ? 2 : n, in lua_exec()
H A Dlfs.c152 luaL_argcheck(L, dp != NULL, 1, "closed directory"); in lua_dir_iter_next()
/freebsd/contrib/lua/src/
H A Dlutf8lib.c103 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, in utflen()
105 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen()
134 luaL_argcheck(L, posi >= 1, 2, "out of bounds"); in codepoint()
135 luaL_argcheck(L, pose <= (lua_Integer)len, 3, "out of bounds"); in codepoint()
157 luaL_argcheck(L, code <= MAXUTF, arg, "value out of range"); in pushutfchar()
193 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 3, in byteoffset()
261 luaL_argcheck(L, !iscontp(s), 1, MSGInvalid); in iter_codes()
H A Dltablib.c74 luaL_argcheck(L, (lua_Unsigned)pos - 1u < (lua_Unsigned)e, 2, in tinsert()
96 luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 2, in tremove()
124 luaL_argcheck(L, f > 0 || e < LUA_MAXINTEGER + f, 3, in tmove()
127 luaL_argcheck(L, t <= LUA_MAXINTEGER - n + 1, 4, in tmove()
402 luaL_argcheck(L, n < INT_MAX, 1, "array too big"); in sort()
H A Dldblib.c155 luaL_argcheck(L, options[0] != '>', arg + 2, "invalid option '>'"); in db_getinfo()
291 luaL_argcheck(L, id != NULL, argnup, "invalid upvalue index"); in checkupval()
312 luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected"); in db_upvaluejoin()
313 luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected"); in db_upvaluejoin()
H A Dlstrlib.c202 luaL_argcheck(L, c <= (lua_Unsigned)UCHAR_MAX, i, "value out of range"); in str_char()
1363 luaL_argcheck(L, l == strlen(s), arg, "string contains zeros");
1634 luaL_argcheck(L, -lim <= n && n < lim, arg, "integer overflow");
1642 luaL_argcheck(L, (lua_Unsigned)n < ((lua_Unsigned)1 << (size * NB)),
1678 luaL_argcheck(L, len <= (size_t)size, arg,
1688 luaL_argcheck(L, size >= (int)sizeof(size_t) ||
1699 luaL_argcheck(L, strlen(s) == len, arg, "string contains zeros");
1724 luaL_argcheck(L, opt != Kstring && opt != Kzstr, 1,
1727 luaL_argcheck(L, totalsize <= MAXSIZE - size, 1,
1777 luaL_argcheck(L, pos <= ld, 3, "initial position out of string");
[all …]
H A Dlmathlib.c121 luaL_argcheck(L, d != 0, 2, "zero"); in math_fmod()
210 luaL_argcheck(L, n >= 1, 1, "value expected"); in math_min()
224 luaL_argcheck(L, n >= 1, 1, "value expected"); in math_max()
584 luaL_argcheck(L, low <= up, 1, "interval is empty"); in math_random()
H A Dlbaselib.c103 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber()
261 luaL_argcheck(L, t != LUA_TNONE, 1, "value expected"); in luaB_type()
448 luaL_argcheck(L, 1 <= i, 1, "index out of range"); in luaB_select()
H A Dliolib.c274 luaL_argcheck(L, l_checkmode(md), 2, "invalid mode"); in io_open()
294 luaL_argcheck(L, l_checkmodep(mode), 2, "invalid mode"); in io_popen()
365 luaL_argcheck(L, n <= MAXARGLINE, MAXARGLINE + 2, "too many arguments"); in aux_lines()
704 luaL_argcheck(L, (lua_Integer)offset == p3, 3, in f_seek()
H A Dltests.c732 luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), in listcode()
751 luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), in printcode()
767 luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), in listk()
782 luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), in listabslineinfo()
785 luaL_argcheck(L, p->abslineinfo != NULL, 1, "function has no debug info"); in listabslineinfo()
802 luaL_argcheck(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), in listlocals()
967 luaL_argcheck(L, lua_type(L, 1) == LUA_TSTRING, 1, "string expected"); in hash_query()
1166 luaL_argcheck(L, L1 != NULL, 1, "state expected"); in getstate()
1893 luaL_argcheck(L, co, 1, "coroutine expected"); in coresume()
H A Dlauxlib.h133 #define luaL_argcheck(L, cond,arg,extramsg) \ macro
H A Dloslib.c293 luaL_argcheck(L, (time_t)t == t, arg, "time out-of-bounds"); in l_checktime()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlbaselib.c45 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber()
96 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in luaB_setmetatable()
116 luaL_argcheck(L, t == LUA_TTABLE || t == LUA_TSTRING, 1, in luaB_rawlen()
243 luaL_argcheck(L, 1 <= i, 1, "index out of range"); in luaB_select()
H A Dlcorolib.c49 luaL_argcheck(L, co, 1, "coroutine expected"); in luaB_coresume()
103 luaL_argcheck(L, co, 1, "coroutine expected"); in luaB_costatus()
H A Dltablib.c50 luaL_argcheck(L, 1 <= pos && pos <= e, 2, "position out of bounds"); in tinsert()
70 luaL_argcheck(L, 1 <= pos && pos <= size + 1, 1, "position out of bounds"); in tremove()
H A Dlstrlib.c168 luaL_argcheck(L, uchar(c) == c, i, "value out of range"); in str_char()
755 luaL_argcheck(L, tr == LUA_TNUMBER || tr == LUA_TSTRING || in str_gsub()
931 luaL_argcheck(L, -1 < diff && diff < 1, arg, in str_format()
941 luaL_argcheck(L, -1 < diff && diff < 1, arg, in str_format()
/freebsd/libexec/flua/libjail/
H A Dlua_jail.c94 luaL_argcheck(L, iter != NULL, 1, "closed jail iterator"); in l_jail_iter_next()
382 luaL_argcheck(L, type == LUA_TSTRING || type == LUA_TNUMBER, 1, in l_getparams()
469 luaL_argcheck(L, type == LUA_TSTRING || type == LUA_TNUMBER, 1, in l_setparams()
579 luaL_argcheck(L, type == LUA_TSTRING || type == LUA_TNUMBER, 1, in l_attach()
610 luaL_argcheck(L, type == LUA_TSTRING || type == LUA_TNUMBER, 1, in l_remove()
/freebsd/sys/contrib/openzfs/include/sys/lua/
H A Dlauxlib.h100 #define luaL_argcheck(L, cond,numarg,extramsg) \ macro