Files
Goober5000 ee1330669a add Lua BitOp 1.0.2
Adds the standard Lua extension library for bit operations in Lua 5.1.
http://bitop.luajit.org/

Note that this library is normally called "bit", but it is added here as "luabit" because there is already a FSO scripting library called "bit".
2022-05-31 10:23:44 -04:00

18 lines
427 B
C

#ifndef _LUA_EXTENSIONS_H
#define _LUA_EXTENSIONS_H
#include "lua.h"
// These are libraries that we want to add to the core Lua code. We can't integrate them into the
// base Lua library because the library may be loaded differently on different platforms.
#define LUA_BITLIBNAME "luabit"
LUALIB_API int luaopen_bit(lua_State* L);
// open all extension libraries
LUALIB_API void luaL_openlibs_ext(lua_State* L);
#endif