aboutsummaryrefslogtreecommitdiff
path: root/src/common.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.hff')
-rw-r--r--src/common.hff5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common.hff b/src/common.hff
index 6643dda..187fbf3 100644
--- a/src/common.hff
+++ b/src/common.hff
@@ -52,11 +52,8 @@ defmacro with_tmpchange(var,x,&body) [
defmacro MAX(a,b) [((a) > (b) ? (a) : (b))]
-defmacro offsetof_(T, fld) [
- (as(isize)(&(as(*T)#null).fld))
-]
defmacro container_of(x, T, fld) [
- (as(*T)(as(*void)(x) - offsetof_(T, fld)))
+ (as(*T)(as(*void)(x) - offsetof(T, fld)))
]
// Inline functions