Skip to content

Commit

Permalink
Fix MSVC issue with [[noreturn]]'s placement
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Dec 26, 2024
1 parent bee90cb commit 934e163
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/libassert/assert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ namespace libassert {

struct assertion_info;

LIBASSERT_EXPORT [[noreturn]] void default_failure_handler(const assertion_info& info);
[[noreturn]] LIBASSERT_EXPORT void default_failure_handler(const assertion_info& info);

LIBASSERT_EXPORT void set_failure_handler(void (*handler)(const assertion_info&));

Expand Down
2 changes: 1 addition & 1 deletion src/assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ namespace libassert {

}

LIBASSERT_ATTR_COLD LIBASSERT_EXPORT [[noreturn]]
[[noreturn]] LIBASSERT_ATTR_COLD LIBASSERT_EXPORT
void default_failure_handler(const assertion_info& info) {
enable_virtual_terminal_processing_if_needed(); // for terminal colors on windows
std::string message = info.to_string(
Expand Down

0 comments on commit 934e163

Please sign in to comment.