Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ppl-compilation-directives [2019-04-12 15:05] – stimpy | ppl-compilation-directives [2026-08-22 20:50] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Compilation Directives ====== | ||
| - | |||
| - | ===== ; | ||
| - | |||
| - | Source files can be included from other source files. This is accomplished with a compiler directive in a comment like this: | ||
| - | |||
| - | ; | ||
| - | |||
| - | Note that the first character need not be the semi-colon. An apostrophe ['] or asterisk [*] may also be used where appropriate. | ||
| - | |||
| - | This allows you to include subroutines from a source code ' | ||
| - | |||
| - | **For example: | ||
| - | |||
| - | | ||
| - | | ||
| - | : | ||
| - | | ||
| - | | ||
| - | |||
| - | | ||
| - | | ||
| - | | ||
| - | GOSUB subroutine | ||
| - | END ' This line is important! | ||
| - | | ||
| - | |||
| - | Note the use of END in FOO.PPS. It is important in this case to ensure that you don't accidentally run subroutine twice by just falling through to it. | ||
| - | |||
| - | ===== ;$USEFUNCS ===== | ||
| - | Allow you to specifiy that you want to use user-defined functions and procedures. | ||
| - | |||
| - | This makes the code more flexible by allowing you to put your main code (code between Begin and End) anywhere in your program (usefull if you have to incude some user-defined functions with an include directive at the beginning of your code) | ||
| - | |||
| - | ---- | ||
| - | **Tags:** {{tag> | ||