Home
last modified time | relevance | path

Searched refs:api_check (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/external/mit/lua/dist/src/
H A Dlapi.c70 api_check(L, idx <= ci->top.p - (ci->func.p + 1), "unacceptable index"); in index2value()
75 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2value()
83 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2value()
90 api_check(L, ttislcf(s2v(ci->func.p)), "caller not a C function"); in index2value()
105 api_check(L, o < L->top.p, "invalid index"); in index2stack()
109 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2stack()
111 api_check(L, !ispseudo(idx), "invalid index"); in index2stack()
122 api_check(L, n >= 0, "negative 'n'"); in lua_checkstack()
139 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
140 api_check(from, to->ci->top.p - to->top.p >= n, "stack overflow"); in lua_xmove()
[all …]
H A Dlapi.h19 api_check(L, L->top.p <= L->ci->top.p, \
35 api_check(L, (n) < (L->top.p - L->ci->func.p), \
H A Dllimits.h132 #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) macro
H A Dldo.c892 api_check(L, nresults == 0, "hooks cannot yield values"); in lua_yieldk()
893 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()
H A Dldebug.c396 api_check(L, ttisfunction(func), "function expected"); in lua_getinfo()