aboutsummaryrefslogtreecommitdiff
path: root/lualib.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-12 15:48:47 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-12 15:48:47 -0300
commit2ca518141350667e38941eac35b76980095d2fdc (patch)
tree82595f0dfd57df5782905621298c8aae68b46389 /lualib.h
parentf5ae26ec6c2eb69f03f316e59c1e1977c52c7c23 (diff)
downloadlua-2ca518141350667e38941eac35b76980095d2fdc.tar.gz
lua-2ca518141350667e38941eac35b76980095d2fdc.tar.bz2
lua-2ca518141350667e38941eac35b76980095d2fdc.zip
Branch 5.2 - new releases for 5.2 go from here, main trunk goes
for next version
Diffstat (limited to 'lualib.h')
-rw-r--r--lualib.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/lualib.h b/lualib.h
new file mode 100644
index 00000000..9fd126bf
--- /dev/null
+++ b/lualib.h
@@ -0,0 +1,55 @@
1/*
2** $Id: lualib.h,v 1.43 2011/12/08 12:11:37 roberto Exp $
3** Lua standard libraries
4** See Copyright Notice in lua.h
5*/
6
7
8#ifndef lualib_h
9#define lualib_h
10
11#include "lua.h"
12
13
14
15LUAMOD_API int (luaopen_base) (lua_State *L);
16
17#define LUA_COLIBNAME "coroutine"
18LUAMOD_API int (luaopen_coroutine) (lua_State *L);
19
20#define LUA_TABLIBNAME "table"
21LUAMOD_API int (luaopen_table) (lua_State *L);
22
23#define LUA_IOLIBNAME "io"
24LUAMOD_API int (luaopen_io) (lua_State *L);
25
26#define LUA_OSLIBNAME "os"
27LUAMOD_API int (luaopen_os) (lua_State *L);
28
29#define LUA_STRLIBNAME "string"
30LUAMOD_API int (luaopen_string) (lua_State *L);
31
32#define LUA_BITLIBNAME "bit32"
33LUAMOD_API int (luaopen_bit32) (lua_State *L);
34
35#define LUA_MATHLIBNAME "math"
36LUAMOD_API int (luaopen_math) (lua_State *L);
37
38#define LUA_DBLIBNAME "debug"
39LUAMOD_API int (luaopen_debug) (lua_State *L);
40
41#define LUA_LOADLIBNAME "package"
42LUAMOD_API int (luaopen_package) (lua_State *L);
43
44
45/* open all previous libraries */
46LUALIB_API void (luaL_openlibs) (lua_State *L);
47
48
49
50#if !defined(lua_assert)
51#define lua_assert(x) ((void)0)
52#endif
53
54
55#endif