lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 11/30/11 3:41 AM, Antonio Vieiro wrote:
Hi all,

Is it possible to know if I'm compiling with LuaJIT at compile time?
(this is, is there any #define out there specifically for detecting

Thanks in advance,

Hi Antonio,

The lua.h from luajit and lua are almost the same, but the luajit ones include luaconf.h that has LUA_JDIR which the lua one does not have.

So maybe juse

#if defined(LUA_JDIR)
/// luajit
/// lua

Dimiter 'malkia' Stanev.