extra api checks for number of returns of C functions and for lua_yield
This commit is contained in:
5
lapi.c
5
lapi.c
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user