Remove building with NOCRYPTO option
[minix3.git] / external / mit / lua / dist / src / lapi.h
blobe1b31c6fb05167c27bd6059f7cc0fff055d8309d
1 /* $NetBSD: lapi.h,v 1.4 2015/10/08 13:21:00 mbalmer Exp $ */
3 /*
4 ** Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp
5 ** Auxiliary functions from Lua API
6 ** See Copyright Notice in lua.h
7 */
9 #ifndef lapi_h
10 #define lapi_h
13 #include "llimits.h"
14 #include "lstate.h"
16 #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
17 "stack overflow");}
19 #define adjustresults(L,nres) \
20 { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
22 #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
23 "not enough elements in the stack")
26 #endif