aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-22 11:27:18 +0100
committerGitHub <noreply@github.com>2025-10-22 11:27:18 +0100
commit7c2101ea3d0f2dcc0eee433e02c278f9ace45ff8 (patch)
tree0bea8abd4f3061fa17c5dbb457e810276b92653d /src/types.cpp
parent61424cfbf8d9169d2f68b8c646020114a281c65b (diff)
parentfaa9222fefc831963dd258e3c040333e6d580bb0 (diff)
Merge pull request #5812 from Kelimion/data-alignment
Set minimum #load(file, type) alignment to 16 bytes
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index cb830d08d..bf668e5f6 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -2,6 +2,9 @@ struct Ast;
struct Scope;
struct Entity;
+// NOTE(Jeroen): Minimum alignment for #load(file, <type>) slices
+#define MINIMUM_SLICE_ALIGNMENT 16
+
enum BasicKind {
Basic_Invalid,