C99: Suggestions for style(9)

Christoph Mallon christoph.mallon at gmx.de
Sun May 17 12:32:05 UTC 2009


Stanislav Sedov schrieb:
> On Fri, 01 May 2009 08:20:20 -0600 (MDT)
> "M. Warner Losh" <imp at 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


More information about the freebsd-hackers mailing list