'module'/'luaL_register' and associates are deprecated

This commit is contained in:
Roberto Ierusalimschy
2010-07-28 12:51:59 -03:00
parent 78f9635111
commit d447945685
6 changed files with 33 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.140 2010/07/18 14:34:45 roberto Exp roberto $
** $Id: luaconf.h,v 1.141 2010/07/25 15:02:41 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -273,6 +273,12 @@
/* compatibility with previous wrong spelling */
#define luaL_typerror luaL_typeerror
/*
@@ LUA_COMPAT_MODULE controls compatibility with previous
** module functions 'module' (Lua) and 'luaL_register' (C).
*/
#define LUA_COMPAT_MODULE
#endif /* LUA_COMPAT_ALL */
/* }================================================================== */