Mail Archives: djgpp/2004/02/04/15:28:27
> From: sterten AT aol DOT com (Sterten)
> Newsgroups: comp.os.msdos.djgpp
> Date: 04 Feb 2004 13:09:48 GMT
>
> I assume that the compiler first translates the #define 's
> into another source code file S and then processes
> S in a second step.
In effect, it does (in practice, the two phases run together).
> So, can I code with macros and then make the compiler
> output the preprocessed file S also, so that everyone
> can have the source without macros, if he wants ?
You can (see the -E switch to the compiler), but why would you like
to?
My recommendation is: when in Rome behave as a Roman. That is, when
you work in a certain programming language, use the syntactic
conventions of that programming language, even if facilities like
macros allow you to redefine almost everything.
- Raw text -