aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lundump.h b/lundump.h
index 1204c2c5..6b851da0 100644
--- a/lundump.h
+++ b/lundump.h
@@ -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))