Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef lapi_h
00008 #define lapi_h
00009
00010
00011 #include "llimits.h"
00012 #include "lstate.h"
00013
00014 #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
00015 "stack overflow");}
00016
00017 #define adjustresults(L,nres) \
00018 { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
00019
00020 #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
00021 "not enough elements in the stack")
00022
00023
00024 #endif