From: "Task Struct From Hell" <taskstructfromhell@googlemail.com>
To: linux-c-programming@vger.kernel.org
Subject: c preprocessor expansion
Date: Thu, 8 Jan 2009 17:49:09 +0000 [thread overview]
Message-ID: <ef37ea20901080949i2cd875fbk58b4ae3605655812@mail.gmail.com> (raw)
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
next reply other threads:[~2009-01-08 17:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 17:49 Task Struct From Hell [this message]
2009-01-08 17:46 ` c preprocessor expansion 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ef37ea20901080949i2cd875fbk58b4ae3605655812@mail.gmail.com \
--to=taskstructfromhell@googlemail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).