Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2009 14:32:02 +0200
From:      Christoph Mallon <christoph.mallon@gmx.de>
To:        Stanislav Sedov <stas@FreeBSD.org>
Cc:        sobomax@freebsd.org, freebsd-hackers@freebsd.org, rdivacky@freebsd.org, ed@freebsd.org, marius@alchemy.franken.de
Subject:   Re: C99: Suggestions for style(9)
Message-ID:  <4A1003C2.8070901@gmx.de>
In-Reply-To: <20090517145331.fda0f91f.stas@FreeBSD.org>
References:  <49F4070C.2000108@gmx.de>	<20090501112239.GA23199@alchemy.franken.de>	<49FADEF3.5010106@gmx.de>	<20090501.082020.698246310.imp@bsdimp.com> <20090517145331.fda0f91f.stas@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Stanislav Sedov schrieb:
> On Fri, 01 May 2009 08:20:20 -0600 (MDT)
> "M. Warner Losh" <imp@bsdimp.com> mentioned:
>> It is a debugging aid, but one of dubious value for a far more
>> fundamental reason:
>>
>> 	    return;
>>
>> will break any macro.
>>
> 
> You can use variadic marcos in this case if the piece of code debugged
> uses void returns.

No, you cannot. Function like macros with ellipsis ("variadic macros") 
cannot be treated as object like macros. See ISO/IEC 9899:1999 (E) 
§6.10.3:4.

     Christoph



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1003C2.8070901>