RFR: 8261300: jpackage: rewrite while(0)/while(false) to proper blocks

Aleksey Shipilev shade at openjdk.java.net
Mon Feb 8 15:25:03 UTC 2021


On Mon, 8 Feb 2021 14:31:32 GMT, Andy Herrick <herrick at openjdk.org> wrote:

> There are also instances of "while(0)" (without space) in app.cpp, tstrings.cpp. and ErrorHandling.h

Right. I removed more things in `tstrings.cpp`, but in other places, `while(0)` are in `#define`-s, and that is one place where those make sense: they guard from syntax/semantic errors during macro expansion.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2454


More information about the core-libs-dev mailing list