Re: c preprocessor expansion

"Yan Lin" <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <AAA5666725A149B2A882E90858347F9A@ftnjoe>
gcc -E would do this.


----- Original Message ----- 
From: "Task Struct From Hell" <[email protected]>
To: <[email protected]>
Sent: Thursday, January 08, 2009 9:49 AM
Subject: c preprocessor expansion


> 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
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-c-programming" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> 


*** This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient.  Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited.  If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. ***
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.