2009-05-21 19:01:41 +00:00
|
|
|
/*
|
2014-04-02 18:46:06 +00:00
|
|
|
** $Id$
|
2009-05-21 19:01:41 +00:00
|
|
|
** Lua standard libraries
|
|
|
|
** See Copyright Notice in lua.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef lualib_h
|
|
|
|
#define lualib_h
|
|
|
|
|
|
|
|
#include "lua.h"
|
|
|
|
|
|
|
|
|
2014-04-02 18:46:06 +00:00
|
|
|
/* Key to file-handle type */
|
|
|
|
#define LUA_FILEHANDLE "FILE*"
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
#define LUA_COLIBNAME "coroutine"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_base) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
#define LUA_TABLIBNAME "table"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_table) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
#define LUA_IOLIBNAME "io"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_io) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
#define LUA_OSLIBNAME "os"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_os) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
#define LUA_STRLIBNAME "string"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_string) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
#define LUA_MATHLIBNAME "math"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_math) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
#define LUA_DBLIBNAME "debug"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_debug) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
#define LUA_LOADLIBNAME "package"
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API int (luaopen_package) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
2014-04-02 18:46:06 +00:00
|
|
|
#define LUA_BITLIBNAME "bit"
|
|
|
|
LUALIB_API int (luaopen_bit) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
/* open all previous libraries */
|
2014-04-02 18:46:06 +00:00
|
|
|
LUALIB_API void (luaL_openlibs) (lua_State *L);
|
2009-05-21 19:01:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-02 18:46:06 +00:00
|
|
|
#ifndef lua_assert
|
2009-05-21 19:01:41 +00:00
|
|
|
#define lua_assert(x) ((void)0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|