diff options
Diffstat (limited to 'lundump.h')
-rw-r--r-- | lundump.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -18,7 +18,12 @@ #define LUAC_INT 0x5678 #define LUAC_NUM cast_num(370.5) -#define LUAC_VERSION LUA_VERSION_NUM +/* +** Encode major-minor version in one byte, one nibble for each +*/ +#define MYINT(s) (s[0]-'0') /* assume one-digit numbers */ +#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) + #define LUAC_FORMAT 0 /* this is the official format */ /* load one chunk; from lundump.c */ |