Lines Matching refs:api_check
54 #define api_checkvalidindex(l,o) api_check(l, isvalid(o), "invalid index")
57 api_check(l, isstackindex(i, o), "index not in the stack")
64 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
69 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
76 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr()
101 api_check(L, n >= 0, "negative 'n'"); in lua_checkstack()
123 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
124 api_check(from, to->ci->top - to->top >= n, "stack overflow"); in lua_xmove()
176 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop()
182 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); in lua_settop()
213 api_check(L, (n >= 0 ? n : -n) <= (t - p + 1), "invalid 'n'"); in lua_rotate()
259 api_check(L, LUA_TNONE <= t && t < LUA_NUMTAGS, "invalid tag"); in lua_typename()
329 default: api_check(L, 0, "invalid option"); in lua_compare()
541 api_check(L, n <= MAXUPVAL, "upvalue index too large"); in lua_pushcclosure()
651 api_check(L, ttistable(t), "table expected"); in lua_rawget()
662 api_check(L, ttistable(t), "table expected"); in lua_rawgeti()
675 api_check(L, ttistable(t), "table expected"); in lua_rawgetp()
728 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_getuservalue()
807 api_check(L, ttistable(o), "table expected"); in lua_rawset()
822 api_check(L, ttistable(o), "table expected"); in lua_rawseti()
836 api_check(L, ttistable(o), "table expected"); in lua_rawsetp()
855 api_check(L, ttistable(L->top - 1), "table expected"); in lua_setmetatable()
891 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_setuservalue()
905 api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \
913 api_check(L, k == NULL || !isLua(L->ci), in lua_callk()
916 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_callk()
954 api_check(L, k == NULL || !isLua(L->ci), in lua_pcallk()
957 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_pcallk()
1128 api_check(L, ttistable(t), "table expected"); in lua_next()
1260 api_check(L, ttisLclosure(fi), "Lua function expected"); in getupvalref()
1262 api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index"); in getupvalref()
1276 api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index"); in lua_upvalueid()
1280 api_check(L, 0, "closure expected"); in lua_upvalueid()