Next: , Up: The Preprocessor


5.1 $include

The $include directive lets you import a file. If the included file is a pascal file then only documentation comments, those starting by ‘{**’ or ‘(**’ or ‘//**’, are imported. Pascal files are recognized by their extension, which must be one of : ‘.pas’, ‘.pp’, ‘.p’ or ‘.inc’.

     Example: Importing files  
      1  $include 'src/myunit.pas'
      2  $include 'topics.txt'