aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-09-19 15:47:18 +0200
committerSverker Eriksson <[email protected]>2016-09-19 15:48:56 +0200
commitf1ffa5e90e5eecaac890e876760932d1bb1d9c86 (patch)
treef01f62566790c21679f3503f016faab8c8f8a9bd /erts
parent6cba7d35d3322db8acc25c45889c2b03f1b2f4c2 (diff)
downloadotp-f1ffa5e90e5eecaac890e876760932d1bb1d9c86.tar.gz
otp-f1ffa5e90e5eecaac890e876760932d1bb1d9c86.tar.bz2
otp-f1ffa5e90e5eecaac890e876760932d1bb1d9c86.zip
erts: Add ErtsSizeofMember macro
(in case it matters)
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/sys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index 2d0628f70e..16e6c33367 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -103,6 +103,8 @@
#define ErtsContainerStruct_(ptr, type, memberv) \
((type *)((char *)(1 ? (ptr) : ((type *)0)->memberv) - offsetof(type, memberv)))
+#define ErtsSizeofMember(type, member) sizeof(((type *)0)->member)
+
#if defined (__WIN32__)
# include "erl_win_sys.h"
#else