[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Identifting minor versions (Was: [ANN] Lua 5.3.3 (rc1) now available
- From: Jonathan Goble <jcgoble3@...>
- Date: Sun, 8 May 2016 16:30:47 -0400
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.