mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
lua: added bit library
This commit is contained in:
parent
0d121fccd7
commit
a5061a888c
2 changed files with 7 additions and 4 deletions
|
|
@ -20,12 +20,11 @@ lua::LuaState::LuaState() {
|
||||||
luaopen_string(L);
|
luaopen_string(L);
|
||||||
luaopen_table(L);
|
luaopen_table(L);
|
||||||
luaopen_debug(L);
|
luaopen_debug(L);
|
||||||
|
luaopen_jit(L);
|
||||||
|
luaopen_bit(L);
|
||||||
|
|
||||||
std::cout << LUA_VERSION << std::endl;
|
std::cout << LUA_VERSION << std::endl;
|
||||||
# ifdef LUAJIT_VERSION
|
std::cout << LUAJIT_VERSION << std::endl;
|
||||||
luaopen_jit(L);
|
|
||||||
std::cout << LUAJIT_VERSION << std::endl;
|
|
||||||
# endif // LUAJIT_VERSION
|
|
||||||
|
|
||||||
createFuncs();
|
createFuncs();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
#ifndef LUAJIT_VERSION
|
||||||
|
#error LuaJIT required
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace lua {
|
namespace lua {
|
||||||
using luaint = lua_Integer;
|
using luaint = lua_Integer;
|
||||||
using luanumber = lua_Number;
|
using luanumber = lua_Number;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue