This interface defines compiler-dependent features. They are <<EM>>not<</EM>> necessarily portable.
INTERFACECompiler ; TYPE OS = { POSIX, WIN32 }; Platform = { AIX386, ALPHA_OSF, AP3000, ARM, DS3100, FreeBSD, FreeBSD2, HP300, HPPA, IBMR2, IBMRT, IRIX5, LINUX, LINUXELF, NEXT, NT386, OKI, OS2, SEQUENT, SOLgnu, SOLsun, SPARC, SUN3, SUN386, UMAX, VAX, FreeBSD3, FreeBSD4, FBSD_ALPHA, LINUXLIBC6, I386_DARWIN, PPC_DARWIN }; CONST ThisOS = OS.POSIX; ThisPlatform = Platform.LINUXLIBC6; PROCEDURE ThisFile (): TEXT;
Returns the name of the source file that called ThisFile
.
The result may be used as a compile-time constant.
PROCEDURE ThisPath (): TEXT;
Returns the fully qualified path of the source file that
called ThisPath
. The result may be used as a compile-time
constant.
PROCEDURE ThisLine (): CARDINAL;
Returns the source line number where ThisLine
was called.
The result may be used as a compile-time constant.
PROCEDURE ThisException (): ADDRESS;
Returns a description of the exception currently being
handled. This procedure may only be called inside an
active TRY-FINALLY or TRY-EXCEPT handler. The returned
value is an RT0.ActivationPtr
.
END Compiler.