1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
lua/lualib.h

52 lines
886 B
C
Raw Normal View History

1993-07-28 10:18:00 -03:00
/*
2001-03-06 17:09:38 -03:00
** $Id: lualib.h,v 1.19 2001/02/23 20:31:37 roberto Exp roberto $
1997-09-16 16:25:59 -03:00
** Lua standard libraries
** See Copyright Notice in lua.h
1993-07-28 10:18:00 -03:00
*/
1997-09-16 16:25:59 -03:00
1993-07-28 10:18:00 -03:00
#ifndef lualib_h
#define lualib_h
#include "lua.h"
#ifndef LUALIB_API
#define LUALIB_API extern
#endif
2001-02-23 17:31:37 -03:00
#define LUA_ALERT l_s("_ALERT")
2001-03-06 17:09:38 -03:00
LUALIB_API int lua_baselibopen (lua_State *L);
LUALIB_API int lua_iolibopen (lua_State *L);
LUALIB_API int lua_strlibopen (lua_State *L);
LUALIB_API int lua_mathlibopen (lua_State *L);
LUALIB_API int lua_dblibopen (lua_State *L);
1997-09-16 16:25:59 -03:00
2001-02-22 14:15:18 -03:00
/*
** `private' part
*/
/* macro to `unsign' a character */
2001-02-23 14:28:12 -03:00
#ifndef uchar
2001-02-22 14:15:18 -03:00
#define uchar(c) ((unsigned char)(c))
2001-02-23 14:28:12 -03:00
#endif
2001-02-22 14:15:18 -03:00
/* integer type to hold the result of fgetc */
typedef int l_charint;
2001-02-23 14:17:25 -03:00
/* 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
1993-07-28 10:18:00 -03:00
#endif