Tomasu / LuaGlue

C++11 Lua 5.2 Binding Library
zlib License
79 stars 22 forks source link

LuaJIT compatibility #5

Open JMLX42 opened 10 years ago

JMLX42 commented 10 years ago

Hello,

from what I've seen so far, the LuaJIT C API looks pretty much the same as the classic Lua implementation (except for a few JIT related functions).

Does that mean that LuaGlue should work transparently with both Lua and LuaJIT and that I just have to include the proper header for the impl. I want to use?

Thank you very much for your help and your great work!

Tomasu commented 10 years ago

I haven't looked into LuaJIT support yet. I don't know if it's a drop in replacement or not.

LayfonWeller commented 10 years ago

It is not a drop in replacement, luajit give access to lua 5.1 functions only. Meaning that LUA_UNSIGNED and LUA_OK (probably others too) are undefined in luajit, breaking to build.

Tomasu commented 10 years ago

I might try and get 5.1 support in. But it's not a high priority for me at the moment.