Lines Matching refs:api_check
58 #define api_checkvalidindex(l,o) api_check(l, isvalid(o), "invalid index")
61 api_check(l, isstackindex(i, o), "index not in the stack")
68 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
73 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
80 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr()
105 api_check(L, n >= 0, "negative 'n'"); in lua_checkstack()
127 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
128 api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); in lua_xmove()
180 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop()
186 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); in lua_settop()
217 api_check(L, (n >= 0 ? n : -n) <= (t - p + 1), "invalid 'n'"); in lua_rotate()
263 api_check(L, LUA_TNONE <= t && t < LUA_NUMTAGS, "invalid tag"); in lua_typename()
333 default: api_check(L, 0, "invalid option"); in lua_compare()
543 api_check(L, n <= MAXUPVAL, "upvalue index too large"); in lua_pushcclosure()
641 api_check(L, ttistable(t), "table expected"); in lua_rawget()
652 api_check(L, ttistable(t), "table expected"); in lua_rawgeti()
665 api_check(L, ttistable(t), "table expected"); in lua_rawgetp()
718 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_getuservalue()
788 api_check(L, ttistable(o), "table expected"); in lua_rawset()
804 api_check(L, ttistable(o), "table expected"); in lua_rawseti()
820 api_check(L, ttistable(o), "table expected"); in lua_rawsetp()
839 api_check(L, ttistable(L->top - 1), "table expected"); in lua_setmetatable()
875 api_check(L, ttisfulluserdata(o), "full userdata expected"); in lua_setuservalue()
889 api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \
897 api_check(L, k == NULL || !isLua(L->ci), in lua_callk()
900 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_callk()
938 api_check(L, k == NULL || !isLua(L->ci), in lua_pcallk()
941 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_pcallk()
1112 api_check(L, ttistable(t), "table expected"); in lua_next()
1244 api_check(L, ttisLclosure(fi), "Lua function expected"); in getupvalref()
1246 api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index"); in getupvalref()
1260 api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index"); in lua_upvalueid()
1264 api_check(L, 0, "closure expected"); in lua_upvalueid()