diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-05 08:33:39 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-05 08:33:39 -0500 |
commit | 79620980ea3880f6512a35b9d688a60a02ff8b98 (patch) | |
tree | b4ab3dfc656b88989f3e4234e9c476c295c176ed /include/fud_assert.hpp | |
parent | b50980ad70684530d55b7adf20de6047ebf53ba2 (diff) |
Formatting changes. Refactoring out detail::CopyMove from Result.
Diffstat (limited to 'include/fud_assert.hpp')
-rw-r--r-- | include/fud_assert.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/fud_assert.hpp b/include/fud_assert.hpp index fd861ea..8caf751 100644 --- a/include/fud_assert.hpp +++ b/include/fud_assert.hpp @@ -20,11 +20,15 @@ namespace fud { -void assertFail(const char* assertion, const char* file, unsigned int line, const char* function) noexcept(false) - __attribute__((__noreturn__)); +// clang-format off +[[noreturn]] void assertFail( + const char* assertion, + const char* file, + unsigned int line, + const char* function) noexcept(false); +// clang-format on -#define fudAssert(expr) \ - ((expr) ? static_cast<void>(0) : assertFail(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) +#define fudAssert(expr) ((expr) ? static_cast<void>(0) : assertFail(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) } // namespace fud |