poco/Foundation
Alexander B 7ab7a5291d
Improve implementation of logging macros. #2331 (#3862)
* Improve implementation of logging macros. #2331

The GNU compiler emits a warning if nested "if" statements are followed by
an "else" statement and braces are not used to explicitly disambiguate the
"else" binding.  This leads to problems with code like:

   if (gate)
     ASSERT_*(condition) << "Some message";

The "switch (0) case 0:" idiom is used to suppress this.

* I was wrong.
do-while better then switch-case approach for "ambiguous else blocker"
https://godbolt.org/z/W5nnYrzx6

* try to fix tabs

* again fix tabs

* again fix tabs

* again fix tabs
2023-03-18 05:21:32 -05:00
..
2023-03-17 15:24:57 -05:00
2012-04-23 01:14:34 +00:00
2022-07-06 10:46:38 -05:00
2022-07-06 10:46:38 -05:00
2022-07-06 10:46:38 -05:00
2022-07-06 10:46:38 -05:00
2022-07-06 10:46:38 -05:00