summaryrefslogtreecommitdiff
path: root/asl/base/config.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-05-26 22:38:04 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-05-26 22:38:04 +0200
commitb8a87223bb70fccc47ba0f9c96b3f58de6e1e5bd (patch)
tree212ad4e788509f9e3c6b2bc41120c8687298dcb4 /asl/base/config.hpp
parenta1db1cd9e22e77041d5f1360f1d1ccdc52b86306 (diff)
Add compile-time configuration for build settingsHEADmain
Diffstat (limited to 'asl/base/config.hpp')
-rw-r--r--asl/base/config.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/asl/base/config.hpp b/asl/base/config.hpp
index f5756c3..e4e6e5d 100644
--- a/asl/base/config.hpp
+++ b/asl/base/config.hpp
@@ -22,5 +22,15 @@
#error Unknown compiler
#endif
+// ASL_DEBUG=1 for slow builds, with extra validation logic and such.
+#if !defined(ASL_DEBUG)
+ #error ASL_DEBUG should be defined to 0 or 1
+#endif
+
+// ASL_OPTIMIZED=1 for fast builds, with minimal validation logic.
+#if !defined(ASL_OPTIMIZED)
+ #error ASL_OPTIMIZED should be defined to 0 or 1
+#endif
+
// NOLINTEND(*-macro-to-enum)