diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-27 13:37:59 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-27 13:37:59 -0200 |
commit | 3e41afcec550e8c5c3c4372f72efa48cbf7031a3 (patch) | |
tree | 7ae0d003a8ba00b87aecebddc14ffd789a5a9b90 /lapi.c | |
parent | 3acf5ec5a18c83ed0ce7e41c9b5789bddd2b3e60 (diff) | |
download | lua-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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 | ||