3.0 wierdness
Neil Booth
neil@daikokuya.demon.co.uk
Thu Dec 20 02:02:00 GMT 2001
Finny Merrill wrote:-
> printf is a macro?
Glibc autodetects later versions of GCC, and makes it a macro if
you're using one. It's not a GCC issue.
> HOW does printf being a macro work
With a bit of magic.
> ESPECIALLY since we can no longer put preprocessor constants in
> printf statements!
You can do that. You can't put #if in a macro, and therefore in
printf statements. You could always #undef it, or put parens around
it like Joe suggested.
Neil.
More information about the Gcc
mailing list