Skip to content

Commit

Permalink
print condition as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nadrino committed Nov 13, 2024
1 parent d103420 commit bf7b65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/GenericToolbox.Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

// conditions
#define GTLogThrow(message_) GTLogError << message_ << std::endl; throw std::runtime_error("exception thrown by the logger.")
#define GTLogThrowIf(condition_, message_) if(condition_){ GTLogThrow(message_); }
#define GTLogThrowIf(condition_, message_) if(condition_){ GTLogThrow(condition_ << message_); }



Expand Down

0 comments on commit bf7b65a

Please sign in to comment.