Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/lua/src/
H A Dlutf8lib.c77 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, in utflen()
79 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen()
107 luaL_argcheck(L, posi >= 1, 2, "out of range"); in codepoint()
108 luaL_argcheck(L, pose <= (lua_Integer)len, 3, "out of range"); in codepoint()
130 luaL_argcheck(L, 0 <= code && code <= MAXUNICODE, arg, "value out of range"); in pushutfchar()
166 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 3, in byteoffset()
H A Dlmathlib.c131 luaL_argcheck(L, d != 0, 2, "zero"); in math_fmod()
219 luaL_argcheck(L, n >= 1, 1, "value expected"); in math_min()
233 luaL_argcheck(L, n >= 1, 1, "value expected"); in math_max()
268 luaL_argcheck(L, low <= up, 1, "interval is empty"); in math_random()
269 luaL_argcheck(L, low >= 0 || up <= LUA_MAXINTEGER + low, 1, in math_random()
H A Dltablib.c90 luaL_argcheck(L, 1 <= pos && pos <= e, 2, "position out of bounds"); in tinsert()
110 luaL_argcheck(L, 1 <= pos && pos <= size + 1, 1, "position out of bounds"); in tremove()
137 luaL_argcheck(L, f > 0 || e < LUA_MAXINTEGER + f, 3, in tmove()
140 luaL_argcheck(L, t <= LUA_MAXINTEGER - n + 1, 4, in tmove()
414 luaL_argcheck(L, n < INT_MAX, 1, "array too big"); in sort()
H A Dlbaselib.c91 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber()
128 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in luaB_setmetatable()
148 luaL_argcheck(L, t == LUA_TTABLE || t == LUA_TSTRING, 1, in luaB_rawlen()
203 luaL_argcheck(L, t != LUA_TNONE, 1, "value expected"); in luaB_type()
395 luaL_argcheck(L, 1 <= i, 1, "index out of range"); in luaB_select()
H A Dldblib.c58 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in db_setmetatable()
278 luaL_argcheck(L, (lua_getupvalue(L, argf, nup) != NULL), argnup, in checkupval()
294 luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected"); in db_upvaluejoin()
295 luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected"); in db_upvaluejoin()
H A Dlstrlib.c174 luaL_argcheck(L, uchar(c) == c, i, "value out of range"); in str_char()
773 luaL_argcheck(L, tr == LUA_TNUMBER || tr == LUA_TSTRING || in str_gsub()
1075 luaL_argcheck(L, l == strlen(s), arg, "string contains zeros");
1364 luaL_argcheck(L, -lim <= n && n < lim, arg, "integer overflow");
1372 luaL_argcheck(L, (lua_Unsigned)n < ((lua_Unsigned)1 << (size * NB)),
1396 luaL_argcheck(L, len <= (size_t)size, arg,
1406 luaL_argcheck(L, size >= (int)sizeof(size_t) ||
1417 luaL_argcheck(L, strlen(s) == len, arg, "string contains zeros");
1443 luaL_argcheck(L, totalsize <= MAXSIZE - size, 1,
1500 luaL_argcheck(L, pos <= ld, 3, "initial position out of string");
[all …]
H A Dlbitlib.c171 luaL_argcheck(L, 0 <= f, farg, "field cannot be negative"); in fieldargs()
172 luaL_argcheck(L, 0 < w, farg + 1, "width must be positive"); in fieldargs()
H A Dlcorolib.c23 luaL_argcheck(L, co, 1, "thread expected"); in getco()
H A Dliolib.c261 luaL_argcheck(L, l_checkmode(md), 2, "invalid mode"); in io_open()
341 luaL_argcheck(L, n <= MAXARGLINE, MAXARGLINE + 2, "too many arguments"); in aux_lines()
663 luaL_argcheck(L, (lua_Integer)offset == p3, 3, in f_seek()
H A Dlauxlib.h122 #define luaL_argcheck(L, cond,arg,extramsg) \ macro
H A Dloslib.c71 luaL_argcheck(L, (time_t)t == t, arg, "time out-of-bounds"); in l_checktime()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlbaselib.c52 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber()
103 luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, in luaB_setmetatable()
123 luaL_argcheck(L, t == LUA_TTABLE || t == LUA_TSTRING, 1, in luaB_rawlen()
250 luaL_argcheck(L, 1 <= i, 1, "index out of range"); in luaB_select()
H A Dlcorolib.c51 luaL_argcheck(L, co, 1, "coroutine expected"); in luaB_coresume()
105 luaL_argcheck(L, co, 1, "coroutine expected"); in luaB_costatus()
H A Dlbitlib.c158 luaL_argcheck(L, 0 <= f, farg, "field cannot be negative"); in fieldargs()
159 luaL_argcheck(L, 0 < w, farg + 1, "width must be positive"); in fieldargs()
H A Dltablib.c52 luaL_argcheck(L, 1 <= pos && pos <= e, 2, "position out of bounds"); in tinsert()
72 luaL_argcheck(L, 1 <= pos && pos <= size + 1, 1, "position out of bounds"); in tremove()
H A Dlstrlib.c188 luaL_argcheck(L, uchar(c) == c, i, "value out of range"); in str_char()
774 luaL_argcheck(L, tr == LUA_TNUMBER || tr == LUA_TSTRING || in str_gsub()
950 luaL_argcheck(L, -1 < diff && diff < 1, arg, in str_format()
960 luaL_argcheck(L, -1 < diff && diff < 1, arg, in str_format()
H A Dlauxlib.h102 #define luaL_argcheck(L, cond,numarg,extramsg) \ macro
/freebsd-12.1/stand/liblua/
H A Dlfs.c121 luaL_argcheck(L, dp != NULL, 1, "closed directory"); in lua_dir_iter_next()