mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 18:31:26 -10:00
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".
18 lines
427 B
C
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
|