new protocol to open standard libraries

This commit is contained in:
Roberto Ierusalimschy
2005-04-13 14:24:20 -03:00
parent 2873d4efff
commit 04f657c7f8
5 changed files with 15 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lualib.h,v 1.32 2004/07/09 15:47:48 roberto Exp roberto $
** $Id: lualib.h,v 1.33 2005/01/10 16:31:30 roberto Exp roberto $
** Lua standard libraries
** See Copyright Notice in lua.h
*/
@@ -36,12 +36,12 @@ LUALIB_API int (luaopen_math) (lua_State *L);
#define LUA_DBLIBNAME "debug"
LUALIB_API int (luaopen_debug) (lua_State *L);
#define LUA_LOADLIBNAME "package"
LUALIB_API int (luaopen_loadlib) (lua_State *L);
/* open all previous libraries */
LUALIB_API int (luaopen_stdlibs) (lua_State *L);
LUALIB_API void (luaL_openlibs) (lua_State *L);
#endif