aboutsummaryrefslogtreecommitdiff
path: root/lualib.h
blob: 730714a9edc7c9da614d925e44751f86a9a1c94e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
** $Id: lualib.h,v 1.18 2001/02/23 17:28:12 roberto Exp roberto $
** Lua standard libraries
** See Copyright Notice in lua.h
*/


#ifndef lualib_h
#define lualib_h

#include "lua.h"


#ifndef LUALIB_API
#define LUALIB_API	extern
#endif


#define LUA_ALERT               l_s("_ALERT")

LUALIB_API void lua_baselibopen (lua_State *L);
LUALIB_API void lua_iolibopen (lua_State *L);
LUALIB_API void lua_strlibopen (lua_State *L);
LUALIB_API void lua_mathlibopen (lua_State *L);
LUALIB_API void lua_dblibopen (lua_State *L);



/*
** `private' part
*/

/* macro to `unsign' a character */
#ifndef uchar
#define uchar(c)	((unsigned char)(c))
#endif

/* integer type to hold the result of fgetc */
typedef int l_charint;

/* macro to control type of literal strings */
#ifndef l_s
#define l_s(x)	x
#endif

/* macro to control type of literal chars */
#ifndef l_c
#define l_c(x)	x
#endif

#endif