[fpc-pascal] Please someone explain this to me

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Feb 10 21:23:43 CET 2016


> Sven Barth <pascaldragon at googlemail.com> hat am 10. Februar 2016 um 15:09
> geschrieben:
> [...]
> > The {%...} directive is a comment in other contexts and can be used safely.
> 
> What about include files included by other include files?

That is no problem for the MainUnit directive.
The directive tells the codetools the default start file of the scattered unit.
If the IDE has parsed a unit which uses the include file, the MainUnit directive
is ignored.
If a file is included by multiple units, you can give a common unit.

Basically it is just a convenient fallback.

Mattias



More information about the fpc-pascal mailing list