From d1c0efdb7da3bab589290ce196abbc44e92d38f8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 16 Nov 2010 17:20:01 -0200 Subject: [PATCH] comment about compatibility-only functions --- lauxlib.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lauxlib.h b/lauxlib.h index 908134ff..5d167a7d 100644 --- a/lauxlib.h +++ b/lauxlib.h @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.h,v 1.111 2010/11/10 18:05:36 roberto Exp roberto $ +** $Id: lauxlib.h,v 1.112 2010/11/16 17:43:29 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -124,8 +124,6 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, #define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) -#define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0)) - /* ** {====================================================== @@ -162,11 +160,15 @@ LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz); /* }====================================================== */ +/* compatibility with old module system */ + LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname, int sizehint); LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, const luaL_Reg *l, int nup); +#define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0)) + #endif