]>
Commit | Line | Data |
---|---|---|
16a5fed6 | 1 | /*\r |
2 | ** $Id: lualib.h,v 1.43.1.1 2013/04/12 18:48:47 roberto Exp $\r | |
3 | ** Lua standard libraries\r | |
4 | ** See Copyright Notice in lua.h\r | |
5 | */\r | |
6 | \r | |
7 | \r | |
8 | #ifndef lualib_h\r | |
9 | #define lualib_h\r | |
10 | \r | |
11 | #include <Lua/lua.h>\r | |
12 | \r | |
13 | \r | |
14 | \r | |
15 | LUAMOD_API int (luaopen_base) (lua_State *L);\r | |
16 | \r | |
17 | #define LUA_COLIBNAME "coroutine"\r | |
18 | LUAMOD_API int (luaopen_coroutine) (lua_State *L);\r | |
19 | \r | |
20 | #define LUA_TABLIBNAME "table"\r | |
21 | LUAMOD_API int (luaopen_table) (lua_State *L);\r | |
22 | \r | |
23 | #define LUA_IOLIBNAME "io"\r | |
24 | LUAMOD_API int (luaopen_io) (lua_State *L);\r | |
25 | \r | |
26 | #define LUA_OSLIBNAME "os"\r | |
27 | LUAMOD_API int (luaopen_os) (lua_State *L);\r | |
28 | \r | |
29 | #define LUA_STRLIBNAME "string"\r | |
30 | LUAMOD_API int (luaopen_string) (lua_State *L);\r | |
31 | \r | |
32 | #define LUA_BITLIBNAME "bit32"\r | |
33 | LUAMOD_API int (luaopen_bit32) (lua_State *L);\r | |
34 | \r | |
35 | #define LUA_MATHLIBNAME "math"\r | |
36 | LUAMOD_API int (luaopen_math) (lua_State *L);\r | |
37 | \r | |
38 | #define LUA_DBLIBNAME "debug"\r | |
39 | LUAMOD_API int (luaopen_debug) (lua_State *L);\r | |
40 | \r | |
41 | #define LUA_LOADLIBNAME "package"\r | |
42 | LUAMOD_API int (luaopen_package) (lua_State *L);\r | |
43 | \r | |
44 | \r | |
45 | /* open all previous libraries */\r | |
46 | LUALIB_API void (luaL_openlibs) (lua_State *L);\r | |
47 | \r | |
48 | \r | |
49 | \r | |
50 | #if !defined(lua_assert)\r | |
51 | #define lua_assert(x) ((void)0)\r | |
52 | #endif\r | |
53 | \r | |
54 | \r | |
55 | #endif\r |