Re: macros: "do-while" versus "({ })" and a compile-time error

Stefan Richter
2007-01-10T18:25:25Z

Robert P. J. Day wrote:
[...]
> what the above implies is
> that the ALIGN() macro can *never* be extended in that way because of
> the way it's being used in the struct definition above, outside of a
> function.
>
> doesn't that place an unnecessarily limit on what might be done with
> ALIGN() in the future?
[...]

The one occurrence which is different from others could be changed.

But more importantly: Don't overuse macros.
--
Stefan Richter
-=====-=-=== ---= -=-=-