FPT and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Reference Manual Home |
Syntax:
|
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 show cpp for a description of cpp macro handling in fpt and WinFPT.
The macros __FILE__ and __LINE__ are pre-defined and will always be reported. __FILE__ translates to the current file name, without the directory specification. __LINE__ translates to the current line number.
Where to use these commands:
Operating system command line |
Yes |
|
Configuration file, config.fsp |
Yes |
|
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.
Example:
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: __FILE__
Definitions:
Source file name (Without directory)
Macro: __LINE__
Definitions:
Line number in source file
Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.