Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] SET_ADDRESS, if-else

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Sat, 07 Sep 2013 09:46:07 -0700
On 9/7/13 5:53 AM, Evan Huus wrote:
> The usual trick in this situation is to wrap the macro in a "do { MY
> CODE } while (0)" so that it behaves syntactically like a normal
> function call. I have done this in r51819, so it should work now.

Is there any reason we shouldn't convert the macros in address.h (and
proto.h and packet.h and ...) to inline functions?