[fpc-pascal] fpc in cpp mode

Michalis Kamburelis michalis.kambi at gmail.com
Sun Jun 24 06:16:26 CEST 2007


Marc Santhoff wrote:
> 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



More information about the fpc-pascal mailing list