[syslinux] COM32 module: Read-Only shell
H. Peter Anvin
hpa at zytor.com
Sun Feb 15 21:11:36 PST 2009
Gene Cumm wrote:
> On Sun, Feb 15, 2009 at 7:51 PM, H. Peter Anvin <hpa at zytor.com> wrote:
>> FWIW, __VA_ARGS__ is C99.
>
> That came from a small trail of thought. In reading the patch
> submission guidelines, it said to avoid large amounts of ifdef's. So
> I looked at how I could change my debugging printf's to be more
> compliant. (Originally #ifdef DEBUG printf #endif; on 3 lines of
> course). I found out about __VA_ARGS__ and figured out how I could
> use that to use a function in my code but based on an #ifdef it will
> compile to different functions and one of them is that it is an alias
> for printf.
C99 is fine; my point was that it isn't a gcc extension.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
More information about the Syslinux
mailing list