diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-25 16:39:02 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-25 16:39:02 -0400 |
commit | bb283f4581ac07a4dd75325c4343d7f28b1ff376 (patch) | |
tree | f3892f8b77177149ae0294e7241d2ecaf58b64a6 /lib/LuaJIT/src/lualib.h | |
parent | d48436bbf5032484ff7d9c2667a63672e306ca18 (diff) |
Fixed LuaJIT files
Diffstat (limited to 'lib/LuaJIT/src/lualib.h')
-rw-r--r-- | lib/LuaJIT/src/lualib.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/LuaJIT/src/lualib.h b/lib/LuaJIT/src/lualib.h new file mode 100644 index 0000000..bfc130a --- /dev/null +++ b/lib/LuaJIT/src/lualib.h @@ -0,0 +1,43 @@ +/* +** Standard library header. +** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h +*/ + +#ifndef _LUALIB_H +#define _LUALIB_H + +#include "lua.h" + +#define LUA_FILEHANDLE "FILE*" + +#define LUA_COLIBNAME "coroutine" +#define LUA_MATHLIBNAME "math" +#define LUA_STRLIBNAME "string" +#define LUA_TABLIBNAME "table" +#define LUA_IOLIBNAME "io" +#define LUA_OSLIBNAME "os" +#define LUA_LOADLIBNAME "package" +#define LUA_DBLIBNAME "debug" +#define LUA_BITLIBNAME "bit" +#define LUA_JITLIBNAME "jit" +#define LUA_FFILIBNAME "ffi" + +LUALIB_API int luaopen_base(lua_State *L); +LUALIB_API int luaopen_math(lua_State *L); +LUALIB_API int luaopen_string(lua_State *L); +LUALIB_API int luaopen_table(lua_State *L); +LUALIB_API int luaopen_io(lua_State *L); +LUALIB_API int luaopen_os(lua_State *L); +LUALIB_API int luaopen_package(lua_State *L); +LUALIB_API int luaopen_debug(lua_State *L); +LUALIB_API int luaopen_bit(lua_State *L); +LUALIB_API int luaopen_jit(lua_State *L); +LUALIB_API int luaopen_ffi(lua_State *L); + +LUALIB_API void luaL_openlibs(lua_State *L); + +#ifndef lua_assert +#define lua_assert(x) ((void)0) +#endif + +#endif |