Skip to content

Commit

Permalink
Lift global bool into define to skip function call.
Browse files Browse the repository at this point in the history
  • Loading branch information
prharvey committed Jan 1, 2024
1 parent 78a5eff commit 399e984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ inline T &&clang_tidy_no_translations( T &&t )

#define add_msg_debug_if(condition, type, ...) \
do { \
if( Messages::has_debug_filter( type ) && ( condition ) ) { \
if( debug_mode && Messages::has_debug_filter( type ) && ( condition ) ) { \
Messages::add_msg( m_debug, clang_tidy_no_translations( string_format( __VA_ARGS__ ) ) ); \
} \
} while( false )
Expand Down

0 comments on commit 399e984

Please sign in to comment.