Introduction MTB Statements File System Compiler Applications Reference Guide Index

Overview Creating MTB Source Programs Compiling MTB Programs Compiler Directives Special Characters

Compiler Directives

The MTB compiler recognizes several special directives, all intended to make program compilation easier and more convenient. Compiler directives cause an action to occur when the program is compiled, not when the program is executed. These directives, which may appear in any section of the source program, are:

Directive Description
USE usefile-name [,directory] [,start-key] Inserts code from a usefile into the program being compiled (a synonym for INCLUDE)
INCLUDE include-filename [,directory] [,start-key] Inserts code from an include file into the program being compiled (a synonym for USE)
ENDUSE Placed at the end of a usefile
SET symbolic-constant = integer-constant Sets the value of a symbolic constant
SET symbolic-constant$ = "string-constant" Sets the value of a string symbolic constant
UNSET symbolic-constant Clears a symbolic constant
.IF symbolic-constant Start of conditional compliation section
.IFDEF symbolic-constant Start of conditional compliation section (if symbolic constant has been defined)
.IFNDEF symbolic-constant Start of conditional compliation section (if symbolic constant has not been defined)
.ELSE Alternate conditional compliation section
.ENDIF End of conditional compliation section