summaryrefslogtreecommitdiff
path: root/src/lj_def.h
diff options
context:
space:
mode:
authorMike Pall <mike>2016-05-23 01:49:00 +0200
committerMike Pall <mike>2016-05-23 01:49:00 +0200
commit6c8258d74b7d4ae7f288897518f23c809b9395f2 (patch)
tree7479dce31b17ed704f20ee3920b6de6696521f26 /src/lj_def.h
parent8f868a9d02340bae8b3b4a703118b324213f5c6d (diff)
downloadluajit-6c8258d74b7d4ae7f288897518f23c809b9395f2.tar.gz
luajit-6c8258d74b7d4ae7f288897518f23c809b9395f2.tar.bz2
luajit-6c8258d74b7d4ae7f288897518f23c809b9395f2.zip
LJ_FR2: Add support for trace recording and snapshots.
Contributed by Peter Cawley.
Diffstat (limited to 'src/lj_def.h')
-rw-r--r--src/lj_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_def.h b/src/lj_def.h
index 29d3fdda..9413399d 100644
--- a/src/lj_def.h
+++ b/src/lj_def.h
@@ -95,6 +95,8 @@ typedef unsigned int uintptr_t;
95#define U64x(hi, lo) (((uint64_t)0x##hi << 32) + (uint64_t)0x##lo) 95#define U64x(hi, lo) (((uint64_t)0x##hi << 32) + (uint64_t)0x##lo)
96#define i32ptr(p) ((int32_t)(intptr_t)(void *)(p)) 96#define i32ptr(p) ((int32_t)(intptr_t)(void *)(p))
97#define u32ptr(p) ((uint32_t)(intptr_t)(void *)(p)) 97#define u32ptr(p) ((uint32_t)(intptr_t)(void *)(p))
98#define i64ptr(p) ((int64_t)(intptr_t)(void *)(p))
99#define u64ptr(p) ((uint64_t)(intptr_t)(void *)(p))
98 100
99#define checki8(x) ((x) == (int32_t)(int8_t)(x)) 101#define checki8(x) ((x) == (int32_t)(int8_t)(x))
100#define checku8(x) ((x) == (int32_t)(uint8_t)(x)) 102#define checku8(x) ((x) == (int32_t)(uint8_t)(x))