diff options
author | Li Jin <dragon-fly@qq.com> | 2023-08-24 09:21:38 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-08-24 09:21:38 +0800 |
commit | cfcea12ba0e6a40d7c04ac64c75563db0896985c (patch) | |
tree | 8ee7c6d9cd5f7b60fd9bda035b703cc9969ab678 /src/3rdParty/lua/lundump.h | |
parent | eb48c686a7ab5bd3f3f3a8628ed0423872a932c6 (diff) | |
download | yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.tar.gz yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.tar.bz2 yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.zip |
update Lua 5.4.
Diffstat (limited to 'src/3rdParty/lua/lundump.h')
-rw-r--r-- | src/3rdParty/lua/lundump.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/3rdParty/lua/lundump.h b/src/3rdParty/lua/lundump.h index f3748a9..bc71ced 100644 --- a/src/3rdParty/lua/lundump.h +++ b/src/3rdParty/lua/lundump.h | |||
@@ -21,8 +21,7 @@ | |||
21 | /* | 21 | /* |
22 | ** Encode major-minor version in one byte, one nibble for each | 22 | ** Encode major-minor version in one byte, one nibble for each |
23 | */ | 23 | */ |
24 | #define MYINT(s) (s[0]-'0') /* assume one-digit numerals */ | 24 | #define LUAC_VERSION (LUA_VERSION_MAJOR_N*16+LUA_VERSION_MINOR_N) |
25 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) | ||
26 | 25 | ||
27 | #define LUAC_FORMAT 0 /* this is the official format */ | 26 | #define LUAC_FORMAT 0 /* this is the official format */ |
28 | 27 | ||