summaryrefslogtreecommitdiff
path: root/src/lj_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_def.h')
-rw-r--r--src/lj_def.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lj_def.h b/src/lj_def.h
index f6f03318..b7df8606 100644
--- a/src/lj_def.h
+++ b/src/lj_def.h
@@ -74,13 +74,7 @@ typedef unsigned __int32 uintptr_t;
74#define UNUSED(x) ((void)(x)) /* to avoid warnings */ 74#define UNUSED(x) ((void)(x)) /* to avoid warnings */
75#endif 75#endif
76 76
77#ifndef cast
78#define cast(t, exp) ((t)(exp))
79#endif
80
81#define U64x(hi, lo) (((uint64_t)0x##hi << 32) + (uint64_t)0x##lo) 77#define U64x(hi, lo) (((uint64_t)0x##hi << 32) + (uint64_t)0x##lo)
82#define cast_byte(i) cast(uint8_t, (i))
83#define cast_num(i) cast(lua_Number, (i))
84#define i32ptr(p) ((int32_t)(intptr_t)(void *)(p)) 78#define i32ptr(p) ((int32_t)(intptr_t)(void *)(p))
85#define u32ptr(p) ((uint32_t)(intptr_t)(void *)(p)) 79#define u32ptr(p) ((uint32_t)(intptr_t)(void *)(p))
86 80