On Apr 18, 2005, at 2:11 PM, H. J. Lu wrote:
I am trying to comment out
static GTY (()) int foo = 0;
with
#if 0 static GTY (()) int foo = 0; #endif
But I got an error saying something like
./gt....h:44: error: foo undeclared here (not in a function)
Is that expected? How can I comment it out?
Yes, gengtype does not read through preprocessor directives. Comment it out like a normal comment and not using preprocessor directives.
Thanks, Andrew Pinski