[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] [lmi-commits] master 27fbf8ca 8/9: Rewrite unit-test macros to
From: |
Vadim Zeitlin |
Subject: |
Re: [lmi] [lmi-commits] master 27fbf8ca 8/9: Rewrite unit-test macros to allow invocation with terminal '; ' |
Date: |
Sat, 30 Jul 2022 15:25:40 +0200 |
On Fri, 29 Jul 2022 20:42:33 -0400 (EDT) Greg Chicares
<gchicares@sbcglobal.net> wrote:
GC> branch: master
GC> commit 27fbf8cadf9dd8c66621d92f41c5702912587ec7
GC> Author: Gregory W. Chicares <gchicares@sbcglobal.net>
GC> Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
GC>
GC> Rewrite unit-test macros to allow invocation with terminal ';'
FWIW, using "while(0)" like this results in warnings from MSVC, which is
why wx uses
#define wxSTATEMENT_MACRO_BEGIN do {
#define wxSTATEMENT_MACRO_END } while ( (void)0, 0 )
although I can't reproduce it with the latest version any more (see
https://godbolt.org/z/W8Kh7dE3n), so maybe it's not really a problem.
OTOH using these wx helper macros might be considered more readable than
just "bare" do..while(0) loop.
Regards,
VZ
pgpAW1VysqcjV.pgp
Description: PGP signature
- Re: [lmi] [lmi-commits] master 27fbf8ca 8/9: Rewrite unit-test macros to allow invocation with terminal '; ',
Vadim Zeitlin <=