LuaGlue icon indicating copy to clipboard operation
LuaGlue copied to clipboard

LuaJIT compatibility

Open JMLX42 opened this issue 11 years ago • 3 comments
trafficstars

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!

JMLX42 avatar Nov 24 '13 18:11 JMLX42

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

Tomasu avatar Nov 24 '13 19:11 Tomasu

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.

LayfonWeller avatar Jun 05 '14 23:06 LayfonWeller

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

Tomasu avatar Jun 07 '14 22:06 Tomasu