]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/Lua/lualib.h
AppPkg: Add the Lua interpreter and library.
[mirror_edk2.git] / StdLib / Include / Lua / lualib.h
diff --git a/StdLib/Include/Lua/lualib.h b/StdLib/Include/Lua/lualib.h
new file mode 100644 (file)
index 0000000..5a5ecb2
--- /dev/null
@@ -0,0 +1,55 @@
+/*\r
+** $Id: lualib.h,v 1.43.1.1 2013/04/12 18:48:47 roberto Exp $\r
+** Lua standard libraries\r
+** See Copyright Notice in lua.h\r
+*/\r
+\r
+\r
+#ifndef lualib_h\r
+#define lualib_h\r
+\r
+#include <Lua/lua.h>\r
+\r
+\r
+\r
+LUAMOD_API int (luaopen_base) (lua_State *L);\r
+\r
+#define LUA_COLIBNAME "coroutine"\r
+LUAMOD_API int (luaopen_coroutine) (lua_State *L);\r
+\r
+#define LUA_TABLIBNAME  "table"\r
+LUAMOD_API int (luaopen_table) (lua_State *L);\r
+\r
+#define LUA_IOLIBNAME "io"\r
+LUAMOD_API int (luaopen_io) (lua_State *L);\r
+\r
+#define LUA_OSLIBNAME "os"\r
+LUAMOD_API int (luaopen_os) (lua_State *L);\r
+\r
+#define LUA_STRLIBNAME  "string"\r
+LUAMOD_API int (luaopen_string) (lua_State *L);\r
+\r
+#define LUA_BITLIBNAME  "bit32"\r
+LUAMOD_API int (luaopen_bit32) (lua_State *L);\r
+\r
+#define LUA_MATHLIBNAME "math"\r
+LUAMOD_API int (luaopen_math) (lua_State *L);\r
+\r
+#define LUA_DBLIBNAME "debug"\r
+LUAMOD_API int (luaopen_debug) (lua_State *L);\r
+\r
+#define LUA_LOADLIBNAME "package"\r
+LUAMOD_API int (luaopen_package) (lua_State *L);\r
+\r
+\r
+/* open all previous libraries */\r
+LUALIB_API void (luaL_openlibs) (lua_State *L);\r
+\r
+\r
+\r
+#if !defined(lua_assert)\r
+#define lua_assert(x) ((void)0)\r
+#endif\r
+\r
+\r
+#endif\r