lua-users home
lua-l archive

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


On Sun, May 8, 2016 at 2:35 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> Is there a way to distinguish between Lua 5.3.x (x<=2) and Lua
> 5.3.3, apart from exploiting different behaviour in gmatch/gsub?

>From the C side, lua.h contains the macro LUA_VERSION_RELEASE, now
defined as "3" (not '3'). From the Lua side, I think you'll have to
test gmatch behavior to determine which you are dealing with.