![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395281x1.png)
A
| Comments |
| If the compiler encounters an %exit directive within an include file, it stops |
| processing the include file, but continues processing the source file in which |
| it is included. In effect, %exit is equivalent to an |
| When the compiler processes an %exit directive within an %if or %ifdef |
| construct, it closes all %if or %ifdefs before it stops processing the current |
| file. |
| Example |
The Pascal program, |
|
program exit_directive(output); | |
exit_directive.p |
|
| begin |
| writeln('Hello, world!') |
| end. { exit_directive } |
| %exit |
| Everything after the %exit is ignored. |
| So you can put anything here. |
The commands to compile and |
|
| |
hostname% pc | |
execute exit_directive.p | hostname% a.out |
| Hello, world! |
|
|
| The %if Directive |
| The %if directive is a conditional branching directive. |
| Syntax |
| %if expression %then |
| . |
| . |
| %end if |
Pascal Preprocessor | 257 |