Re: how to make a macro work as a single line if stmt without braces

Liste des GroupesRevenir à cl c  
Sujet : Re: how to make a macro work as a single line if stmt without braces
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c
Date : 21. Sep 2024, 10:10:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vclv2b$1hf82$1@dont-email.me>
References : 1
User-Agent : Pan/0.160 (Toresk; )
On Sat, 21 Sep 2024 07:35:49 +0000, Mark Summerfield wrote:

I would prefer to be able to write this instead:
 
total++;
if (failed)
    WARN("failed because...");
else
    ok++;

I wouldn’t, if I were you.

Date Sujet#  Auteur
21 Sep09:35 * how to make a macro work as a single line if stmt without braces3Mark Summerfield
21 Sep10:10 +- Re: how to make a macro work as a single line if stmt without braces1Lawrence D'Oliveiro
21 Sep10:47 `- Re: how to make a macro work as a single line if stmt without braces1David Brown

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal