aboutsummaryrefslogtreecommitdiff
path: root/lapi.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-01 16:20:48 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-01 16:20:48 -0200
commitb9e76be8a691ed83a716a85c6b85cb80f66cc480 (patch)
tree851df615f2cb00ba1bdf4042336a56b7c4609a40 /lapi.h
parentc5482468fde11c6c169da3b331a0653455f8fc94 (diff)
downloadlua-b9e76be8a691ed83a716a85c6b85cb80f66cc480.tar.gz
lua-b9e76be8a691ed83a716a85c6b85cb80f66cc480.tar.bz2
lua-b9e76be8a691ed83a716a85c6b85cb80f66cc480.zip
using 'L->func' when possible
Diffstat (limited to 'lapi.h')
-rw-r--r--lapi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.h b/lapi.h
index b39898eb..ce64a727 100644
--- a/lapi.h
+++ b/lapi.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.h,v 2.8 2014/07/15 21:26:50 roberto Exp roberto $ 2** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp roberto $
3** Auxiliary functions from Lua API 3** Auxiliary functions from Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -17,7 +17,7 @@
17#define adjustresults(L,nres) \ 17#define adjustresults(L,nres) \
18 { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 18 { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
19 19
20#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 20#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->func), \
21 "not enough elements in the stack") 21 "not enough elements in the stack")
22 22
23 23