]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/Include/Lua/lualib.h
AppPkg: Add the Lua interpreter and library.
[mirror_edk2.git] / StdLib / Include / Lua / lualib.h
CommitLineData
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
15LUAMOD_API int (luaopen_base) (lua_State *L);\r
16\r
17#define LUA_COLIBNAME "coroutine"\r
18LUAMOD_API int (luaopen_coroutine) (lua_State *L);\r
19\r
20#define LUA_TABLIBNAME "table"\r
21LUAMOD_API int (luaopen_table) (lua_State *L);\r
22\r
23#define LUA_IOLIBNAME "io"\r
24LUAMOD_API int (luaopen_io) (lua_State *L);\r
25\r
26#define LUA_OSLIBNAME "os"\r
27LUAMOD_API int (luaopen_os) (lua_State *L);\r
28\r
29#define LUA_STRLIBNAME "string"\r
30LUAMOD_API int (luaopen_string) (lua_State *L);\r
31\r
32#define LUA_BITLIBNAME "bit32"\r
33LUAMOD_API int (luaopen_bit32) (lua_State *L);\r
34\r
35#define LUA_MATHLIBNAME "math"\r
36LUAMOD_API int (luaopen_math) (lua_State *L);\r
37\r
38#define LUA_DBLIBNAME "debug"\r
39LUAMOD_API int (luaopen_debug) (lua_State *L);\r
40\r
41#define LUA_LOADLIBNAME "package"\r
42LUAMOD_API int (luaopen_package) (lua_State *L);\r
43\r
44\r
45/* open all previous libraries */\r
46LUALIB_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