rlm@1: /* rlm@1: ** $Id: lualib.h,v 1.36.1.1 2007/12/27 13:02:25 roberto Exp $ rlm@1: ** Lua standard libraries rlm@1: ** See Copyright Notice in lua.h rlm@1: */ rlm@1: rlm@1: rlm@1: #ifndef lualib_h rlm@1: #define lualib_h rlm@1: rlm@1: #include "lua.h" rlm@1: rlm@1: rlm@1: /* Key to file-handle type */ rlm@1: #define LUA_FILEHANDLE "FILE*" rlm@1: rlm@1: rlm@1: #define LUA_COLIBNAME "coroutine" rlm@1: LUALIB_API int (luaopen_base) (lua_State *L); rlm@1: rlm@1: #define LUA_TABLIBNAME "table" rlm@1: LUALIB_API int (luaopen_table) (lua_State *L); rlm@1: rlm@1: #define LUA_IOLIBNAME "io" rlm@1: LUALIB_API int (luaopen_io) (lua_State *L); rlm@1: rlm@1: #define LUA_OSLIBNAME "os" rlm@1: LUALIB_API int (luaopen_os) (lua_State *L); rlm@1: rlm@1: #define LUA_STRLIBNAME "string" rlm@1: LUALIB_API int (luaopen_string) (lua_State *L); rlm@1: rlm@1: #define LUA_MATHLIBNAME "math" rlm@1: LUALIB_API int (luaopen_math) (lua_State *L); rlm@1: rlm@1: #define LUA_DBLIBNAME "debug" rlm@1: LUALIB_API int (luaopen_debug) (lua_State *L); rlm@1: rlm@1: #define LUA_LOADLIBNAME "package" rlm@1: LUALIB_API int (luaopen_package) (lua_State *L); rlm@1: rlm@1: rlm@1: /* open all previous libraries */ rlm@1: LUALIB_API void (luaL_openlibs) (lua_State *L); rlm@1: rlm@1: rlm@1: rlm@1: #ifndef lua_assert rlm@1: #define lua_assert(x) ((void)0) rlm@1: #endif rlm@1: rlm@1: rlm@1: #endif