/netbsd-src/external/mit/lua/dist/src/ |
H A D | lutf8lib.c | 107 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, in utflen() 109 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen() 138 luaL_argcheck(L, posi >= 1, 2, "out of bounds"); in codepoint() 139 luaL_argcheck(L, pose <= (lua_Integer)len, 3, "out of bounds"); in codepoint() 161 luaL_argcheck(L, code <= MAXUTF, arg, "value out of range"); in pushutfchar() 197 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 3, in byteoffset() 265 luaL_argcheck(L, !iscontp(s), 1, MSGInvalid); in iter_codes()
|
H A D | ltablib.c | 78 luaL_argcheck(L, (lua_Unsigned)pos - 1u < (lua_Unsigned)e, 2, in tinsert() 100 luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 2, in tremove() 128 luaL_argcheck(L, f > 0 || e < LUA_MAXINTEGER + f, 3, in tmove() 131 luaL_argcheck(L, t <= LUA_MAXINTEGER - n + 1, 4, in tmove() 406 luaL_argcheck(L, n < INT_MAX, 1, "array too big"); in sort()
|
H A D | ldblib.c | 159 luaL_argcheck(L, options[0] != '>', arg + 2, "invalid option '>'"); in db_getinfo() 295 luaL_argcheck(L, id != NULL, argnup, "invalid upvalue index"); in checkupval() 316 luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected"); in db_upvaluejoin() 317 luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected"); in db_upvaluejoin()
|
H A D | lstrlib.c | 206 luaL_argcheck(L, c <= (lua_Unsigned)UCHAR_MAX, i, "value out of range"); in str_char() 1371 luaL_argcheck(L, l == strlen(s), arg, "string contains zeros"); in str_format() 1648 luaL_argcheck(L, -lim <= n && n < lim, arg, "integer overflow"); in str_pack() 1656 luaL_argcheck(L, (lua_Unsigned)n < ((lua_Unsigned)1 << (size * NB)), in str_pack() 1690 luaL_argcheck(L, len <= (size_t)size, arg, in str_pack() 1700 luaL_argcheck(L, size >= (int)sizeof(size_t) || in str_pack() 1711 luaL_argcheck(L, strlen(s) == len, arg, "string contains zeros"); in str_pack() 1736 luaL_argcheck(L, opt != Kstring && opt != Kzstr, 1, in str_packsize() 1739 luaL_argcheck(L, totalsize <= MAXSIZE - size, 1, in str_packsize() 1789 luaL_argcheck(L, pos <= ld, 3, "initial position out of string"); in str_unpack() [all …]
|
H A D | lmathlib.c | 123 luaL_argcheck(L, d != 0, 2, "zero"); in math_fmod() 212 luaL_argcheck(L, n >= 1, 1, "value expected"); in math_min() 226 luaL_argcheck(L, n >= 1, 1, "value expected"); in math_max() 586 luaL_argcheck(L, low <= up, 1, "interval is empty"); in math_random()
|
H A D | lbaselib.c | 107 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); in luaB_tonumber() 265 luaL_argcheck(L, t != LUA_TNONE, 1, "value expected"); in luaB_type() 456 luaL_argcheck(L, 1 <= i, 1, "index out of range"); in luaB_select()
|
H A D | liolib.c | 276 luaL_argcheck(L, l_checkmode(md), 2, "invalid mode"); in io_open() 296 luaL_argcheck(L, l_checkmodep(mode), 2, "invalid mode"); in io_popen() 367 luaL_argcheck(L, n <= MAXARGLINE, MAXARGLINE + 2, "too many arguments"); in aux_lines() 706 luaL_argcheck(L, (lua_Integer)offset == p3, 3, in f_seek()
|
H A D | lauxlib.h | 146 #define luaL_argcheck(L, cond,arg,extramsg) \ macro
|
H A D | loslib.c | 295 luaL_argcheck(L, (time_t)t == t, arg, "time out-of-bounds"); in l_checktime()
|