diff options
Diffstat (limited to 'asl/layout.hpp')
-rw-r--r-- | asl/layout.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/asl/layout.hpp b/asl/layout.hpp index 2295a1c..990af46 100644 --- a/asl/layout.hpp +++ b/asl/layout.hpp @@ -33,3 +33,5 @@ struct layout };
} // namespace asl
+
+#define AslOffsetOf(S, M) (static_cast<isize_t>(__builtin_offsetof(S, M)))
|