aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-08-23 15:14:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-08-23 15:14:03 -0300
commitc815c2f0eb7a4ac01d4f664f3db44c199ee4e211 (patch)
tree63cdeea69af0df9ff82303d05c517068eb54e56e /lundump.h
parentab6a94952215b1f66436d8eeebded1dad9fa5409 (diff)
parent9363a8b9901a5643c9da061ea8dda8a86cdc7ef1 (diff)
downloadlua-c815c2f0eb7a4ac01d4f664f3db44c199ee4e211.tar.gz
lua-c815c2f0eb7a4ac01d4f664f3db44c199ee4e211.tar.bz2
lua-c815c2f0eb7a4ac01d4f664f3db44c199ee4e211.zip
Merge branch 'master' into nextversion
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lundump.h b/lundump.h
index 7def905b..bfabaa63 100644
--- a/lundump.h
+++ b/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