proxmark3/client/deps/liblua/lapi.h

25 lines
621 B
C
Raw Normal View History

2013-05-22 02:23:42 +08:00
/*
** $Id: lapi.h,v 2.7 2009/11/27 15:37:59 roberto Exp $
** Auxiliary functions from Lua API
** See Copyright Notice in lua.h
*/
#ifndef lapi_h
#define lapi_h
#include "llimits.h"
#include "lstate.h"
#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
2019-03-10 07:00:59 +08:00
"stack overflow");}
2013-05-22 02:23:42 +08:00
#define adjustresults(L,nres) \
{ if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
2019-03-10 01:16:50 +08:00
#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
2019-03-10 07:00:59 +08:00
"not enough elements in the stack")
2013-05-22 02:23:42 +08:00
#endif