The preprocessor of FPKPascal is integrated in the compiler and supports all preprocessor instructions of TP except the compiler switches.
Furthermore, the preprocessor support macro expanding like and C allows to print user defined messages while compiling.
FPK is predefined for all versions of FPKPascal.
Furthermore, there are symbols to distinguish different versions
of FPKPascal, for version 0.6.2 these are VER0,
VER0_6 and VER0_6_2.
There are also predefined symbols to detect the target operating
system: DOS for DOS,OS2 for OS/2,
LINUX for LINUX and WIN32 for
Windows 95/NT.
$MESSAGE prints the message until the end of the comment
$WARNING prints the message until the end of the comment
as compiler warning
$ERROR prints the message until the end of the comment
as compiler error
-Sm if macros should be supported.
Macros are defined by $DEFINE follow by an identifier
and =. If this identifier occurs in the input, this
identifier is replace by the compiler with the text which follows
the =.
Example:
{...}
{$DEFINE expr=
a:=a+b;
}
{...}
begin
expr { becomes a:=a+b; }
{$DEFINE b=100}
expr { becomes a:=a+100; }
end;
{...}
fnklaemp@cip.ft.uni-erlangen.de
Copyright (c) 1996 by Florian Klaempfl