fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

SHOW CPP MACROS

Syntax:

[DO NOT] SHOW CPP MACROS

Function:

The command SHOW CPP MACROS commands fpt to display an alphabetical list of the cpp macros defined in the code with the definitions of each macro. Please see the description of cpp commands for a description of cpp macro handling in fpt and WinFPT.

The macros __DATE__, __FILE__, __LINE__ and __TIME__ are pre-defined and will always be reported.
__DATE__ translates to the current date.
__FILE__ translates to the current file name, without the directory specification.
__LINE__ translates to the current line number.
__TIME__ translates to the machine time.

Where to use this command:

Operating system command line Yes
Configuration file, config.fsp No
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code No

Default

The macro listing is not displayed by default.

Examples

The command is used interactively to display the macros in the example shown for show cpp.

FPT> show cpp macros CPP Macros ========== Macro: FTYPE Definitions: FTYPE yield Macro: ROUTINE Definitions: ROUTINE set_components ROUTINE get_components ROUTINE show_components Macro: __DATE__ Definitions: Current date Macro: __FILE__ Definitions: Source file name (Without directory) Macro: __LINE__ Definitions: Line number in source file Macro: __TIME__ Definitions: Wall-clock time End of CPP Macro listing

Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.