diff options
| author | jussi | 2023-07-02 17:44:24 +0300 |
|---|---|---|
| committer | jussi | 2023-07-02 17:44:24 +0300 |
| commit | 8ad725429292be22086d51df285907742be7a91a (patch) | |
| tree | 41c13c146bb3f3f82ade36c2518d105a72b2a5dc /include/lua/lualib.h | |
| parent | 0e77452a1b4f894e342dae5583f8b02f915e8f6d (diff) | |
| download | reilua-enhanced-8ad725429292be22086d51df285907742be7a91a.tar.gz reilua-enhanced-8ad725429292be22086d51df285907742be7a91a.tar.bz2 reilua-enhanced-8ad725429292be22086d51df285907742be7a91a.zip | |
LuaJIT compatibility.
Diffstat (limited to 'include/lua/lualib.h')
| -rw-r--r-- | include/lua/lualib.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/include/lua/lualib.h b/include/lua/lualib.h new file mode 100644 index 0000000..f5304aa --- /dev/null +++ b/include/lua/lualib.h @@ -0,0 +1,61 @@ +/* +** $Id: lualib.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ +** Lua standard libraries +** See Copyright Notice in lua.h +*/ + + +#ifndef lualib_h +#define lualib_h + +#include "lua.h" + + +/* version suffix for environment variable names */ +#define LUA_VERSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR + + +LUAMOD_API int (luaopen_base) (lua_State *L); + +#define LUA_COLIBNAME "coroutine" +LUAMOD_API int (luaopen_coroutine) (lua_State *L); + +#define LUA_TABLIBNAME "table" +LUAMOD_API int (luaopen_table) (lua_State *L); + +#define LUA_IOLIBNAME "io" +LUAMOD_API int (luaopen_io) (lua_State *L); + +#define LUA_OSLIBNAME "os" +LUAMOD_API int (luaopen_os) (lua_State *L); + +#define LUA_STRLIBNAME "string" +LUAMOD_API int (luaopen_string) (lua_State *L); + +#define LUA_UTF8LIBNAME "utf8" +LUAMOD_API int (luaopen_utf8) (lua_State *L); + +#define LUA_BITLIBNAME "bit32" +LUAMOD_API int (luaopen_bit32) (lua_State *L); + +#define LUA_MATHLIBNAME "math" +LUAMOD_API int (luaopen_math) (lua_State *L); + +#define LUA_DBLIBNAME "debug" +LUAMOD_API int (luaopen_debug) (lua_State *L); + +#define LUA_LOADLIBNAME "package" +LUAMOD_API int (luaopen_package) (lua_State *L); + + +/* open all previous libraries */ +LUALIB_API void (luaL_openlibs) (lua_State *L); + + + +#if !defined(lua_assert) +#define lua_assert(x) ((void)0) +#endif + + +#endif |
