diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-31 13:34:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-31 13:34:19 -0300 |
commit | 2c1a5d678daadec5de189c58a5fef7e12d463b71 (patch) | |
tree | 00d363586a9efe67b532c19c96ffdefca31396ba /lauxlib.h | |
parent | bd619b931173fc35f38dfbb07746bcdc5ef11808 (diff) | |
download | lua-2c1a5d678daadec5de189c58a5fef7e12d463b71.tar.gz lua-2c1a5d678daadec5de189c58a5fef7e12d463b71.tar.bz2 lua-2c1a5d678daadec5de189c58a5fef7e12d463b71.zip |
factoring out common code in 'module' and 'luaL_openlib'
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.104 2010/04/19 18:52:15 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.105 2010/05/04 17:21:08 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 | */ |
@@ -29,6 +29,8 @@ typedef struct luaL_Reg { | |||
29 | LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver); | 29 | LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver); |
30 | #define luaL_checkversion(L) luaL_checkversion_(L, LUA_VERSION_NUM) | 30 | #define luaL_checkversion(L) luaL_checkversion_(L, LUA_VERSION_NUM) |
31 | 31 | ||
32 | LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname, | ||
33 | int sizehint); | ||
32 | LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, | 34 | LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, |
33 | const luaL_Reg *l, int nup); | 35 | const luaL_Reg *l, int nup); |
34 | LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); | 36 | LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); |