extra api checks for number of returns of C functions and for lua_yield

This commit is contained in:
Roberto Ierusalimschy
2009-11-27 13:37:59 -02:00
parent 3acf5ec5a1
commit 3e41afcec5
3 changed files with 10 additions and 6 deletions

5
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 2.99 2009/11/09 18:55:17 roberto Exp roberto $
** $Id: lapi.c,v 2.100 2009/11/09 19:10:48 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -35,9 +35,6 @@ const char lua_ident[] =
#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
"not enough elements in the stack")
#define api_checkvalidindex(L, i) api_check(L, (i) != luaO_nilobject, \
"invalid index")