[Bug other/83048] wrap multi-statement macros in do {} while (0)

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 20 16:13:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83048

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #2)
> I wonder if we could use a macro like this:
> ...
> #define SAFE_MACRO_STMT(stmt)			\

Submitted RFC at https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01782.html .


More information about the Gcc-bugs mailing list