diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-17 11:55:41 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-17 11:55:41 +0200 |
commit | 0ce167bebc9679385c4f60b0e96967b6f87a74bd (patch) | |
tree | 83b375ba9154ad78d01a68c032818e9babc92384 /modules/core/c++ | |
parent | 0286c97dd6ef613d701c0e723058e60e46ba2419 (diff) |
Changed name of macro
Diffstat (limited to 'modules/core/c++')
-rw-r--r-- | modules/core/c++/error.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/c++/error.hpp b/modules/core/c++/error.hpp index b4a9504..3335a6e 100644 --- a/modules/core/c++/error.hpp +++ b/modules/core/c++/error.hpp @@ -285,7 +285,7 @@ bool error::is_type() const { return error_code_ == impl::get_template_id<T>(); } -#define SAW_CHECK_AND_PRINT(ErrorName, ValueName, ErrStream) \ +#define SAW_CHECK_AND_PRINT_ON_ERROR(ErrorName, ValueName, ErrStream) \ if(ErrorName.is_error()) [[unlikely]] { \ auto& err = ErrorName.get_error(); \ ErrStream << "Error: "<< err.get_category(); \ @@ -295,7 +295,7 @@ bool error::is_type() const { } \ ErrStream << std::endl; \ } \ - auto& ValueName = ErrorName.get_value(); + auto& ValueName = ErrorName.get_value() } // namespace saw |