diff options
| author | Warner Losh <imp@FreeBSD.org> | 2017-11-28 22:55:31 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2017-11-28 22:55:31 +0000 |
| commit | c07e635a743de50fac64b715c08cd78aa51077c5 (patch) | |
| tree | 863f22fc969cf46809d8d43e637381729edbe9ef /src/lapi.h | |
| parent | 52bff0d770d4359f702d9922b8608ad23351ea89 (diff) | |
Notes
Diffstat (limited to 'src/lapi.h')
| -rw-r--r-- | src/lapi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lapi.h b/src/lapi.h index 092f5e974cb1..6d36dee3fb78 100644 --- a/src/lapi.h +++ b/src/lapi.h @@ -1,5 +1,5 @@ /* -** $Id: lapi.h,v 2.8 2014/07/15 21:26:50 roberto Exp $ +** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ ** Auxiliary functions from Lua API ** See Copyright Notice in lua.h */ @@ -11,13 +11,13 @@ #include "llimits.h" #include "lstate.h" -#define api_incr_top(L) {L->top++; api_check(L->top <= L->ci->top, \ +#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ "stack overflow");} #define adjustresults(L,nres) \ { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } -#define api_checknelems(L,n) api_check((n) < (L->top - L->ci->func), \ +#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ "not enough elements in the stack") |
