Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-06

fpc in cpp mode

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

Hi,

is it possible to tell fpc to only replace macros in the code and store/show the generated file?

Like Running "cpp myfile.c > myfile.preprocessed.c"?

TIA,
Marc

Catalin Zamfir Alexandru
to Marc Santhoff

As I know of, FPC automatically detects which files should be recompiled. Think it's a feature of FPC.

Marc Santhoff wrote 14 lines
Hi, is it possible to tell fpc to only replace macros in the code and store/show the generated file? Like Running "cpp myfile.c > myfile.preprocessed.c"? TIA, Marc _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Michalis Kamburelis
to Marc Santhoff: is it possible to tell fpc to only replace macros in the code and store/show the…
Marc Santhoff wrote 7 lines
Hi, is it possible to tell fpc to only replace macros in the code and store/show the generated file? Like Running "cpp myfile.c > myfile.preprocessed.c"?

This doesn't answer your question, but maybe it's helpful:

While developing pasdoc, I wrote a Pascal preprocessor. It expands FPC macros, handles $ifdefs, $includes etc. and outputs processed code. See [http://pasdoc.sipsolutions.net/OtherTools].

Michalis