1993-07-28 06:18:00 -07:00
|
|
|
/*
|
2002-07-09 11:49:13 -07:00
|
|
|
** $Id: lualib.h,v 1.24 2002/06/18 17:42:52 roberto Exp roberto $
|
1997-09-16 12:25:59 -07:00
|
|
|
** Lua standard libraries
|
|
|
|
** See Copyright Notice in lua.h
|
1993-07-28 06:18:00 -07:00
|
|
|
*/
|
|
|
|
|
1997-09-16 12:25:59 -07:00
|
|
|
|
1993-07-28 06:18:00 -07:00
|
|
|
#ifndef lualib_h
|
|
|
|
#define lualib_h
|
|
|
|
|
1996-04-30 14:13:55 -07:00
|
|
|
#include "lua.h"
|
|
|
|
|
2000-09-12 06:46:59 -07:00
|
|
|
|
2000-10-27 09:15:53 -07:00
|
|
|
#ifndef LUALIB_API
|
|
|
|
#define LUALIB_API extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2002-06-05 10:24:04 -07:00
|
|
|
#define LUA_COLIBNAME "coroutine"
|
2001-03-06 12:09:38 -08:00
|
|
|
LUALIB_API int lua_baselibopen (lua_State *L);
|
2002-06-05 10:24:04 -07:00
|
|
|
|
|
|
|
#define LUA_TABLIBNAME "table"
|
2002-04-09 13:19:06 -07:00
|
|
|
LUALIB_API int lua_tablibopen (lua_State *L);
|
2002-06-05 10:24:04 -07:00
|
|
|
|
|
|
|
#define LUA_IOLIBNAME "io"
|
|
|
|
#define LUA_OSLIBNAME "os"
|
2001-03-06 12:09:38 -08:00
|
|
|
LUALIB_API int lua_iolibopen (lua_State *L);
|
2002-06-05 10:24:04 -07:00
|
|
|
|
|
|
|
#define LUA_STRLIBNAME "string"
|
2001-03-06 12:09:38 -08:00
|
|
|
LUALIB_API int lua_strlibopen (lua_State *L);
|
2002-06-05 10:24:04 -07:00
|
|
|
|
|
|
|
#define LUA_MATHLIBNAME "math"
|
2001-03-06 12:09:38 -08:00
|
|
|
LUALIB_API int lua_mathlibopen (lua_State *L);
|
2002-06-05 10:24:04 -07:00
|
|
|
|
|
|
|
#define LUA_DBLIBNAME "debug"
|
2001-03-06 12:09:38 -08:00
|
|
|
LUALIB_API int lua_dblibopen (lua_State *L);
|
1997-09-16 12:25:59 -07:00
|
|
|
|
|
|
|
|
2002-06-18 10:42:52 -07:00
|
|
|
/* to help testing the libraries */
|
|
|
|
#ifndef lua_assert
|
|
|
|
#define lua_assert(c) /* empty */
|
|
|
|
#endif
|
|
|
|
|
1993-07-28 06:18:00 -07:00
|
|
|
#endif
|