diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-11 11:22:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-11 11:22:54 -0300 |
commit | 68f4ccdd00edac2a1b02878f0ef6fa32e8893857 (patch) | |
tree | 0acdc7c125bab9952fb46935ed024b1acde9760e /lundump.h | |
parent | 342a9365996d5f2018602e7650262adaf72bcb52 (diff) | |
download | lua-68f4ccdd00edac2a1b02878f0ef6fa32e8893857.tar.gz lua-68f4ccdd00edac2a1b02878f0ef6fa32e8893857.tar.bz2 lua-68f4ccdd00edac2a1b02878f0ef6fa32e8893857.zip |
make sure that LUAC_INT is a lua_Integer and that LUAC_NUM is
a lua_Number
Diffstat (limited to 'lundump.h')
-rw-r--r-- | lundump.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.h,v 1.40 2014/02/27 16:56:20 roberto Exp roberto $ | 2 | ** $Id: lundump.h,v 1.41 2014/03/10 19:52:47 roberto Exp roberto $ |
3 | ** load precompiled Lua chunks | 3 | ** load precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -7,6 +7,7 @@ | |||
7 | #ifndef lundump_h | 7 | #ifndef lundump_h |
8 | #define lundump_h | 8 | #define lundump_h |
9 | 9 | ||
10 | #include "llimits.h" | ||
10 | #include "lobject.h" | 11 | #include "lobject.h" |
11 | #include "lzio.h" | 12 | #include "lzio.h" |
12 | 13 | ||
@@ -14,8 +15,8 @@ | |||
14 | /* data to catch conversion errors */ | 15 | /* data to catch conversion errors */ |
15 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" | 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" |
16 | 17 | ||
17 | #define LUAC_INT 0xABCD | 18 | #define LUAC_INT cast_integer(0xABCD) |
18 | #define LUAC_NUM 370.5 | 19 | #define LUAC_NUM cast_num(370.5) |
19 | 20 | ||
20 | #define MYINT(s) (s[0]-'0') | 21 | #define MYINT(s) (s[0]-'0') |
21 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) | 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) |