summaryrefslogtreecommitdiff
path: root/src/lj_def.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-03-10 02:13:43 +0100
committerMike Pall <mike>2011-03-10 02:13:43 +0100
commit889368e921a11e2abb3769e2c1f395174e83112d (patch)
treea0280bec2142380ce13b1afc2d8e17fcd65e29e9 /src/lj_def.h
parentbfce3c1127fd57fe0c935c92bcf45b4737041edd (diff)
downloadluajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.gz
luajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.bz2
luajit-889368e921a11e2abb3769e2c1f395174e83112d.zip
Get rid of the remaining silly cast macros from Lua.
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