Nut/OS  4.10.3
API Reference
lualib.h
Go to the documentation of this file.
00001 /*
00002 ** $Id: lualib.h 2345 2008-10-10 11:52:25Z haraldkipp $
00003 ** Lua standard libraries
00004 ** See Copyright Notice in lua.h
00005 */
00006 
00007 
00008 #ifndef lualib_h
00009 #define lualib_h
00010 
00011 #include <lua/lua.h>
00012 
00013 
00014 /* Key to file-handle type */
00015 #define LUA_FILEHANDLE          "FILE*"
00016 
00017 
00018 #define LUA_COLIBNAME   "coroutine"
00019 LUALIB_API int (luaopen_base) (lua_State *L);
00020 
00021 #define LUA_TABLIBNAME  "table"
00022 LUALIB_API int (luaopen_table) (lua_State *L);
00023 
00024 #define LUA_IOLIBNAME   "io"
00025 LUALIB_API int (luaopen_io) (lua_State *L);
00026 
00027 #define LUA_OSLIBNAME   "os"
00028 LUALIB_API int (luaopen_os) (lua_State *L);
00029 
00030 #define LUA_STRLIBNAME  "string"
00031 LUALIB_API int (luaopen_string) (lua_State *L);
00032 
00033 #define LUA_MATHLIBNAME "math"
00034 LUALIB_API int (luaopen_math) (lua_State *L);
00035 
00036 #define LUA_DBLIBNAME   "debug"
00037 LUALIB_API int (luaopen_debug) (lua_State *L);
00038 
00039 #define LUA_LOADLIBNAME "package"
00040 LUALIB_API int (luaopen_package) (lua_State *L);
00041 
00042 
00043 /* open all previous libraries */
00044 LUALIB_API void (luaL_openlibs) (lua_State *L); 
00045 
00046 
00047 
00048 #ifndef lua_assert
00049 #define lua_assert(x)   ((void)0)
00050 #endif
00051 
00052 
00053 #endif