]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: add a compilation error message when compiled with an incompatible version
authorCyril Bonté <cyril.bonte@free.fr>
Sun, 1 Mar 2015 23:08:40 +0000 (00:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 2 Mar 2015 12:41:09 +0000 (13:41 +0100)
commitdc0306e3e4f823db7e7bd2d6d031041b58a35fef
treed548bda924943fdcc01973b5634fbd2092415dc0
parent47eb2193d7ef23182ca582a6c2dff6f93e3ef8e5
MINOR: lua: add a compilation error message when compiled with an incompatible version

haproxy Lua support begins with Lua 5.2. In order to ease the diagnostic on
compilation error, a preprocessor error is added when an incompatible version
is used.

The compatibility is determined by the presence of LUA_VERSION_NUM and its
magic value (502 for Lua 5.2.x).
src/hlua.c