From d447945685986f0b1a7bd5d7ed7746bf4ebd5914 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 28 Jul 2010 12:51:59 -0300 Subject: 'module'/'luaL_register' and associates are deprecated --- lauxlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lauxlib.c') diff --git a/lauxlib.c b/lauxlib.c index 38bc27d4..7179507a 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.217 2010/07/02 11:38:13 roberto Exp roberto $ +** $Id: lauxlib.c,v 1.218 2010/07/02 12:01:53 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -664,6 +664,7 @@ LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { ** Compatibility with 5.1 module functions ** ======================================================= */ +#if defined(LUA_COMPAT_MODULE) static const char *luaL_findtablex (lua_State *L, int idx, const char *fname, int szhint) { @@ -735,6 +736,7 @@ LUALIB_API void luaL_openlib (lua_State *L, const char *libname, luaL_setfuncs(L, l, nup); } +#endif /* }====================================================== */ /* -- cgit v1.2.3-55-g6feb