summaryrefslogtreecommitdiff
path: root/src/lapi.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2015-06-03 12:00:00 +0000
committerrepogen <>2015-06-03 12:00:00 +0000
commit6ddf2b3ca86471f90439976967c9e608582f0d0b (patch)
tree7fa563fe4062fcea38b86adfe8a26ac413f0d97b /src/lapi.h
parent34c362812ab38172d3da36404ec9a85f929579c5 (diff)
downloadlua-github-5.3.1-rc1.tar.gz
Lua 5.3.1-rc15.3.1-rc1
Diffstat (limited to 'src/lapi.h')
-rw-r--r--src/lapi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lapi.h b/src/lapi.h
index 092f5e97..6d36dee3 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")