linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* c preprocessor expansion
@ 2009-01-08 17:49 Task Struct From Hell
  2009-01-08 17:46 ` Nicholas Mc Guire
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Task Struct From Hell @ 2009-01-08 17:49 UTC (permalink / raw)
  To: linux-c-programming

Hi,

I was wondering if gcc has any argument which allows for the expansion
of all macros in a file, just so if we have something like the
following:


#define FOO "bar"

int main() {
   printf(FOO);
}

It will output this:

int main() {
   printf("bar");
}

Thanks,
TSFH

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-09  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-08 17:49 c preprocessor expansion Task Struct From Hell
2009-01-08 17:46 ` Nicholas Mc Guire
2009-01-08 17:53 ` Yan Lin
2009-01-08 18:11 ` ninjaboy
2009-01-09  8:15   ` Task Struct From Hell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).