diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-07-03 14:12:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-07-03 14:12:54 -0300 |
commit | cbae01620278f9b568805db16a96d0631ced473d (patch) | |
tree | bca238b27cbdcb48dcb7cb470bfb0aaf7afdff0c /lundump.h | |
parent | ea39042e13645f63713425c05cc9ee4cfdcf0a40 (diff) | |
download | lua-cbae01620278f9b568805db16a96d0631ced473d.tar.gz lua-cbae01620278f9b568805db16a96d0631ced473d.tar.bz2 lua-cbae01620278f9b568805db16a96d0631ced473d.zip |
Details
Diffstat (limited to 'lundump.h')
-rw-r--r-- | lundump.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 | ||