Using $DEBUG for Conditional Compilation (49670)
The information in this article applies to:
- Microsoft FORTRAN Compiler for MS-DOS 4.0
- Microsoft FORTRAN Compiler for MS-DOS 4.01
- Microsoft FORTRAN Compiler for MS-DOS 4.1
- Microsoft FORTRAN Compiler for MS-DOS 5.0
- Microsoft FORTRAN Compiler for MS-DOS 5.1
- Microsoft FORTRAN PowerStation for MS-DOS 1.0
- Microsoft FORTRAN PowerStation for MS-DOS 1.0a
- Microsoft Fortran Powerstation 32 for Windows NT 1.0
- Microsoft FORTRAN compiler for OS/2 4.0
- Microsoft FORTRAN compiler for OS/2 4.1
- Microsoft FORTRAN compiler for OS/2 5.0
- Microsoft FORTRAN compiler for OS/2 5.1
This article was previously published under Q49670 SUMMARY
In code developed with the Microsoft FORTRAN compiler, you can use the
$DEBUG metacommand to perform conditional compilation. According to
the last paragraph on page 286 of the Microsoft FORTRAN "Reference"
manual for versions 5.0 and 5.1:
If the optional string is specified [in the $DEBUG metacommand],
the characters in string specify that lines with those characters
in column 1 are to be compiled into the program. Case is not
significant. Note that the letter C always indicates a comment
line; therefore, if string contains a C, the C is ignored.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbLangFortran KB49670 |
---|
|