diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-16 17:20:01 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-11-16 17:20:01 -0200 |
| commit | d1c0efdb7da3bab589290ce196abbc44e92d38f8 (patch) | |
| tree | c4f71f8011e45559e56d6e4972c9f746814aaa0e | |
| parent | 566758de79b40ee1e2e8c4b48851d9bea1554e2c (diff) | |
| download | lua-d1c0efdb7da3bab589290ce196abbc44e92d38f8.tar.gz lua-d1c0efdb7da3bab589290ce196abbc44e92d38f8.tar.bz2 lua-d1c0efdb7da3bab589290ce196abbc44e92d38f8.zip | |
comment about compatibility-only functions
| -rw-r--r-- | lauxlib.h | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.h,v 1.111 2010/11/10 18:05:36 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.112 2010/11/16 17:43:29 roberto Exp roberto $ |
| 3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -124,8 +124,6 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, | |||
| 124 | 124 | ||
| 125 | #define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) | 125 | #define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) |
| 126 | 126 | ||
| 127 | #define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0)) | ||
| 128 | |||
| 129 | 127 | ||
| 130 | /* | 128 | /* |
| 131 | ** {====================================================== | 129 | ** {====================================================== |
| @@ -162,11 +160,15 @@ LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz); | |||
| 162 | /* }====================================================== */ | 160 | /* }====================================================== */ |
| 163 | 161 | ||
| 164 | 162 | ||
| 163 | /* compatibility with old module system */ | ||
| 164 | |||
| 165 | LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname, | 165 | LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname, |
| 166 | int sizehint); | 166 | int sizehint); |
| 167 | LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, | 167 | LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, |
| 168 | const luaL_Reg *l, int nup); | 168 | const luaL_Reg *l, int nup); |
| 169 | 169 | ||
| 170 | #define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0)) | ||
| 171 | |||
| 170 | 172 | ||
| 171 | #endif | 173 | #endif |
| 172 | 174 | ||
