aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-27 13:37:59 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-11-27 13:37:59 -0200
commit3e41afcec550e8c5c3c4372f72efa48cbf7031a3 (patch)
tree7ae0d003a8ba00b87aecebddc14ffd789a5a9b90 /lapi.c
parent3acf5ec5a18c83ed0ce7e41c9b5789bddd2b3e60 (diff)
downloadlua-3e41afcec550e8c5c3c4372f72efa48cbf7031a3.tar.gz
lua-3e41afcec550e8c5c3c4372f72efa48cbf7031a3.tar.bz2
lua-3e41afcec550e8c5c3c4372f72efa48cbf7031a3.zip
extra api checks for number of returns of C functions and for lua_yield
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lapi.c b/lapi.c
index 7850dcc2..694fdc35 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.99 2009/11/09 18:55:17 roberto Exp roberto $ 2** $Id: lapi.c,v 2.100 2009/11/09 19:10:48 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -35,9 +35,6 @@ const char lua_ident[] =
35 35
36 36
37 37
38#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
39 "not enough elements in the stack")
40
41#define api_checkvalidindex(L, i) api_check(L, (i) != luaO_nilobject, \ 38#define api_checkvalidindex(L, i) api_check(L, (i) != luaO_nilobject, \
42 "invalid index") 39 "invalid index")
43 40