Lines Matching refs:api_check
46 #define api_checkvalidindex(L, o) api_check(L, isvalid(o), "invalid index")
49 api_check(L, isstackindex(i, o), "index not in the stack")
56 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
61 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
68 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr()
114 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
115 api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); in lua_xmove()
166 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop()
172 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); in lua_settop()
324 default: api_check(L, 0, "invalid option"); in lua_compare()
560 api_check(L, n <= MAXUPVAL, "upvalue index too large"); in lua_pushcclosure()
640 api_check(L, ttistable(t), "table expected"); in lua_rawget()
650 api_check(L, ttistable(t), "table expected"); in lua_rawgeti()
662 api_check(L, ttistable(t), "table expected"); in lua_rawgetp()
716 api_check(L, ttisuserdata(o), "userdata expected"); in lua_getuservalue()
772 api_check(L, ttistable(t), "table expected"); in lua_rawset()
786 api_check(L, ttistable(t), "table expected"); in lua_rawseti()
800 api_check(L, ttistable(t), "table expected"); in lua_rawsetp()
818 api_check(L, ttistable(L->top - 1), "table expected"); in lua_setmetatable()
854 api_check(L, ttisuserdata(o), "userdata expected"); in lua_setuservalue()
858 api_check(L, ttistable(L->top - 1), "table expected"); in lua_setuservalue()
873 api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \
890 api_check(L, k == NULL || !isLua(L->ci), in lua_callk()
893 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_callk()
931 api_check(L, k == NULL || !isLua(L->ci), in lua_pcallk()
934 api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); in lua_pcallk()
1116 api_check(L, ttistable(t), "table expected"); in lua_next()
1246 api_check(L, ttisLclosure(fi), "Lua function expected"); in getupvalref()
1248 api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index"); in getupvalref()
1262 api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index"); in lua_upvalueid()
1266 api_check(L, 0, "closure expected"); in lua_upvalueid()