summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-02-15 11:19:59 +0100
committerMel <einebeere@gmail.com>2024-02-15 11:19:59 +0100
commit87ef308220addbe4406006ceb802a7364e6f1a05 (patch)
treecae5638fbe7f1a7a5b94da16466faeb3ccf32e29 /src
parent0a5e412541937ead88377cabdb565ecfe65c0afc (diff)
downloadmeowcraft-87ef308220addbe4406006ceb802a7364e6f1a05.tar.zst
meowcraft-87ef308220addbe4406006ceb802a7364e6f1a05.zip
Add shorter macro for [[nodiscard]] (PURE)
Diffstat (limited to 'src')
-rw-r--r--src/Common/Pure.hpp4
1 files changed, 4 insertions, 0 deletions
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