summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/Common/Pure.hpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d20ed66..93976e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -83,6 +83,7 @@ add_executable(meowcraft
     src/Common/Casts.hpp
     src/World/VoxelTraversal.hpp
     src/Common/Assert.hpp
+    src/Common/Pure.hpp
     src/GFX/Actions.hpp
     src/GFX/Resources.cpp src/GFX/Resources.hpp
     src/ThreadRole.hpp
diff --git a/src/Common/Pure.hpp b/src/Common/Pure.hpp
new file mode 100644
index 0000000..e6e4f19
--- /dev/null
+++ b/src/Common/Pure.hpp
@@ -0,0 +1,4 @@
+#pragma once
+
+// Shorter and slightly nicer way to write [[nodiscard]].
+#define PURE [[nodiscard]]
\ No newline at end of file