diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-13 14:24:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-13 14:24:20 -0300 |
commit | 04f657c7f892072d7cdc021e9e2635acc086f898 (patch) | |
tree | f5cd7c82ae0152a1b252511f85b58296590eca04 /lualib.h | |
parent | 2873d4efff18e972a94a6d20c231b0ac062bc4ca (diff) | |
download | lua-04f657c7f892072d7cdc021e9e2635acc086f898.tar.gz lua-04f657c7f892072d7cdc021e9e2635acc086f898.tar.bz2 lua-04f657c7f892072d7cdc021e9e2635acc086f898.zip |
new protocol to open standard libraries
Diffstat (limited to 'lualib.h')
-rw-r--r-- | lualib.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lualib.h,v 1.32 2004/07/09 15:47:48 roberto Exp roberto $ | 2 | ** $Id: lualib.h,v 1.33 2005/01/10 16:31:30 roberto Exp roberto $ |
3 | ** Lua standard libraries | 3 | ** Lua standard libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -36,12 +36,12 @@ LUALIB_API int (luaopen_math) (lua_State *L); | |||
36 | #define LUA_DBLIBNAME "debug" | 36 | #define LUA_DBLIBNAME "debug" |
37 | LUALIB_API int (luaopen_debug) (lua_State *L); | 37 | LUALIB_API int (luaopen_debug) (lua_State *L); |
38 | 38 | ||
39 | 39 | #define LUA_LOADLIBNAME "package" | |
40 | LUALIB_API int (luaopen_loadlib) (lua_State *L); | 40 | LUALIB_API int (luaopen_loadlib) (lua_State *L); |
41 | 41 | ||
42 | 42 | ||
43 | /* open all previous libraries */ | 43 | /* open all previous libraries */ |
44 | LUALIB_API int (luaopen_stdlibs) (lua_State *L); | 44 | LUALIB_API void (luaL_openlibs) (lua_State *L); |
45 | 45 | ||
46 | 46 | ||
47 | #endif | 47 | #endif |