summaryrefslogtreecommitdiff
path: root/asl/annotations.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-09-04 00:11:04 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-09-04 00:11:04 +0200
commitaa427cb5fe7564a85703f14f76f854419274decc (patch)
tree8395e90d6ce25f8044fb5d2a1a21eecb6e80ed08 /asl/annotations.hpp
parentf0a94256e25c844ca2ff99377bc8b2fb94f69e84 (diff)
Bleh
Diffstat (limited to 'asl/annotations.hpp')
-rw-r--r--asl/annotations.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/asl/annotations.hpp b/asl/annotations.hpp
new file mode 100644
index 0000000..a94834d
--- /dev/null
+++ b/asl/annotations.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#ifndef __clang__
+ #error Not a valid environment
+#endif
+
+#ifdef _MSC_VER
+ #define ASL_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
+#else
+ #define ASL_NO_UNIQUE_ADDRESS [[no_unique_address]]
+#endif
+