summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/except
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-08-14 19:15:53 +0200
committerAmlal <amlal@nekernel.org>2025-08-14 19:21:05 +0200
commit37bc0133c137cdf7fe62e79ac8208ec46096316e (patch)
treef1f52c6ec2cb021f60a8ce94e7af267b65f1e7e1 /dev/lib/except
parent4522b12ee7929f6ba195de9c0b3111802e8e0100 (diff)
feat: mk.test tool, test a header file with static asserts.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/except')
-rw-r--r--dev/lib/except/hpptest.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/dev/lib/except/hpptest.hpp b/dev/lib/except/hpptest.hpp
new file mode 100644
index 0000000..5277780
--- /dev/null
+++ b/dev/lib/except/hpptest.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+/// @note Place your static asserts here, for hpptest.py!
+#ifdef SOCL_HPPTEST
+SOCL_HPPTEST_ASSERT(true);
+SOCL_HPPTEST_ASSERT(1 + 1 == 2);
+#endif
+
+/// @brief This header file is meant to be a tutorial on how to use mk.test and its macro framework.