diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-02 00:35:56 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | 72fe8dd2d6d6a3a5592646950a4e43b9a79ed9b4 (patch) | |
tree | 24f9db48382dab0ff16eef438a79e8e59e173b99 /asl/layout.hpp | |
parent | 27c3969e69f5525ccb0bc462a615a14142b5f178 (diff) |
Start work on buffer
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)))
|