From 87ef308220addbe4406006ceb802a7364e6f1a05 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 15 Feb 2024 11:19:59 +0100 Subject: Add shorter macro for [[nodiscard]] (PURE) --- src/Common/Pure.hpp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/Common/Pure.hpp (limited to 'src') 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 -- cgit 1.4.1