lua-users home
lua-l archive

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




On 08/05/16 05:30 PM, Jonathan Goble wrote:
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.

You can use the goto bug on the Lua side.

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.