diff options
| author | Mel <einebeere@gmail.com> | 2024-02-15 11:19:59 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-15 11:19:59 +0100 |
| commit | 87ef308220addbe4406006ceb802a7364e6f1a05 (patch) | |
| tree | cae5638fbe7f1a7a5b94da16466faeb3ccf32e29 | |
| parent | 0a5e412541937ead88377cabdb565ecfe65c0afc (diff) | |
| download | meowcraft-87ef308220addbe4406006ceb802a7364e6f1a05.tar.zst meowcraft-87ef308220addbe4406006ceb802a7364e6f1a05.zip | |
Add shorter macro for [[nodiscard]] (PURE)
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/Common/Pure.hpp | 4 |
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 |
