diff options
-rw-r--r-- | compat/assert.hpp | 4 | ||||
-rw-r--r-- | test/CMakeLists.txt | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp index 099880d3..9c55c5b3 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -7,7 +7,7 @@ namespace Magnum::Examples::detail { template<std::size_t N, typename...Xs> -constexpr void abort(const char (&fmt)[N], Xs... xs) +constexpr inline void abort(const char (&fmt)[N], Xs... xs) { if (std::is_constant_evaluated()) throw "aborting"; @@ -23,7 +23,7 @@ constexpr void abort(const char (&fmt)[N], Xs... xs) namespace Magnum::Examples { -#define ABORT(...) \ +#define ABORT(...) \ do { \ if (std::is_constant_evaluated()) \ throw "aborting"; \ diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ec7078cb..eef3719a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -8,4 +8,3 @@ link_libraries(Magnum::Application Magnum::Trade) add_executable(${self} "${sources}" "../main/loader-impl.cpp") install(TARGETS ${self} RUNTIME DESTINATION bin) - |