Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/lua/
H A Dlapi.c45 #define api_checkvalidindex(L, o) api_check(L, isvalid(o), "invalid index")
48 api_check(L, isstackindex(i, o), "index not in the stack")
55 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
60 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
67 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2addr()
113 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
114 api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); in lua_xmove()
165 api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); in lua_settop()
171 api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); in lua_settop()
325 default: api_check(L, 0, "invalid option"); in lua_compare()
[all …]
H A Dlapi.h14 #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
20 #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
H A Dlmem.c84 api_check(L, nsize > realosize, in luaM_realloc_()
H A Dllimits.h81 #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) macro
H A Dldebug.c287 api_check(L, ttisfunction(func), "function expected"); in lua_getinfo()
H A Dldo.c669 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()
/freebsd/contrib/lua/src/
H A Dlapi.c64 api_check(L, idx <= ci->top.p - (ci->func.p + 1), "unacceptable index"); in index2value()
69 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2value()
77 api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); in index2value()
84 api_check(L, ttislcf(s2v(ci->func.p)), "caller not a C function"); in index2value()
99 api_check(L, o < L->top.p, "invalid index"); in index2stack()
103 api_check(L, idx != 0 && -idx <= L->top.p - (ci->func.p + 1), in index2stack()
105 api_check(L, !ispseudo(idx), "invalid index"); in index2stack()
116 api_check(L, n >= 0, "negative 'n'"); in lua_checkstack()
133 api_check(from, G(from) == G(to), "moving among independent states"); in lua_xmove()
134 api_check(from, to->ci->top.p - to->top.p >= n, "stack overflow"); in lua_xmove()
[all …]
H A Dlapi.h17 api_check(L, L->top.p <= L->ci->top.p, \
33 api_check(L, (n) < (L->top.p - L->ci->func.p), \
H A Dllimits.h126 #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) macro
H A Dldo.c888 api_check(L, nresults == 0, "hooks cannot yield values"); in lua_yieldk()
889 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()
H A Dldebug.c392 api_check(L, ttisfunction(func), "function expected"); in lua_getinfo()