Searched refs:api_check (Results 1 – 5 of 5) sorted by relevance
| /minix3/external/mit/lua/dist/src/ |
| H A D | lapi.c | 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() [all …]
|
| H A D | lapi.h | 16 #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 22 #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
|
| H A D | llimits.h | 105 #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) macro
|
| H A D | ldebug.c | 306 api_check(L, ttisfunction(func), "function expected"); in lua_getinfo()
|
| H A D | ldo.c | 626 api_check(L, k == NULL, "hooks cannot continue after yielding"); in lua_yieldk()
|