From 84058b15068a382e66f4eeb4e29a2dbf1704fa8b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 11 Jul 2018 13:17:46 -0300 Subject: [PATCH] Added definition for LUA_VERSION_RELEASE_NUM LUA_VERSION_RELEASE_NUM is set to the release number of the Lua interpreter (e.g., 5.4.0 becomes the integer 50400). --- lua.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua.h b/lua.h index 12d9e2ec..03d92c0b 100644 --- a/lua.h +++ b/lua.h @@ -18,9 +18,11 @@ #define LUA_VERSION_MAJOR "5" #define LUA_VERSION_MINOR "4" -#define LUA_VERSION_NUM 504 #define LUA_VERSION_RELEASE "0" +#define LUA_VERSION_NUM 504 +#define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + 0) + #define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR #define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2018 Lua.org, PUC-Rio"