HP SunSoft Pascal 4.0 Uživatelský manuál Strana 271

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 333
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 270
Pascal Preprocessor 247
A
The rest of this appendix contains detailed descriptions and examples of each
directive.
The%config Directive
The %config directive is a predefined conditional variable with a value of
either true or false.
Syntax
%config
Comments
%config is true when you compile your program with the -config option;
otherwise, %config is false.
Use %config in an %if, %ifdef, %elseif, or %elseifdef directive to catch
any undefined values specified with -config. Do not define %config in the
%var directive.
%exit Stops processing the current Pascal source file.
%if When the compiler encounters a %if expression %then directive, it
evaluates expression. If expression is true, pc executes the statements
after %then. If expression is false, pc skips over %then.
%ifdef Determines whether or not you previously defined a conditional
variable in a %var directive.
%include Inserts the lines from the specified file into the input stream.
%list Enables a listing of the program.
%nolist Disables the program listing.
%slibrary Inserts the lines from the specified file into the input stream. Same as
%include.
%var Defines conditional variables.
%warning Prints a warning string on the standard output.
Table A-1 cppas Compiler Directives (Continued)
Compiler
Directive Description
Zobrazit stránku 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 332 333

Komentáře k této Příručce

Žádné komentáře