Skip to content

Commit 84058b1

Browse files
committed
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).
1 parent 4d5de1c commit 84058b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818

1919
#define LUA_VERSION_MAJOR "5"
2020
#define LUA_VERSION_MINOR "4"
21-
#define LUA_VERSION_NUM 504
2221
#define LUA_VERSION_RELEASE "0"
2322

23+
#define LUA_VERSION_NUM 504
24+
#define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + 0)
25+
2426
#define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
2527
#define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE
2628
#define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2018 Lua.org, PUC-Rio"

0 commit comments

Comments
 (0)