luaL_testudata (a luaL_checkudata that does not raise errors) is

very needed.
This commit is contained in:
Roberto Ierusalimschy
2007-05-15 15:46:12 -03:00
parent aa003eba8e
commit 01fa1bc114
2 changed files with 12 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.h,v 1.88 2006/04/12 20:31:15 roberto Exp roberto $
** $Id: lauxlib.h,v 1.89 2007/02/07 17:51:21 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -64,6 +64,7 @@ LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t);
LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname);
LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname);
LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname);
LUALIB_API void (luaL_where) (lua_State *L, int lvl);