Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Expand macro's

Thread Tools

Re: Expand macro's

Victor Bazarov
Posts: n/a
"Darius Blaszijk" <(E-Mail Removed)> wrote...
> I was wondering if there is something like a tool that does expand all
> macro's from a project?? User defined and preferrably system macro's. Ok,

> know that the preprocessor does the same, but is there such a tool without
> having to use the bulky preprocessor. Or if this is not possible, how can

> use the preprocessor to expand a project for me?? Please spell it out for
> me, as I'm only a beginner in C. I use DJGPP as a compiler.

(a) If you're a beginner in C, why are you posting to a C++ newsgroup?
Those are two different languages.

(b) Compilers usually have command-line options that allow the user to
control the output. I can't be sure of DJGPP, take a look at its
help and find the option that allows you to get "preprocessor output"
in a separate file. As an example, G++ has the option -E, which tells
it to preprocess the input file[s] only, no compilation. Combined
with -o it can give you the desired result. Again, I don't know DJGPP
that well.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Expand all folders in Outlook 2003 ? Michael Patten Microsoft Certification 8 09-27-2011 07:11 PM
Expand all folders in Outlook 2003 ? Michael Patten MCSE 6 03-19-2008 07:59 PM
OT- Riverbed-Peribit-Expand? william Cisco 3 12-23-2005 05:11 AM
Thunderbird News : auto expand threads Rizzo Firefox 1 03-02-2005 07:45 AM
Expand and Collapse Jenny ASP .Net 2 08-05-2003 03:41 PM