Preprocessor Instructions
Preprocessor instructions begin with a number sign (“#”) and must be ended with a newline character (enter). You can arrange as many as you like in any order.
|
Instruction |
Description |
|
#DEFINE |
Inserts equivalent names. |
|
#UNDEF |
Removes the equivalent name. |
|
#INCLUDE |
Includes an SML file. |
|
#IFDEF |
Includes SML statements dependent on #DEFINE instructions. |
|
#IFNDEF |
Includes SML statements dependent on #DEFINE instructions. |
|
#ELSE |
Includes SML statements dependent on #DEFINE instructions. |
|
#ENDIF |
Closes an #IFDEF/#IFNDEF instruction. |
|
#SET |
Sets initial values in a simulation description. |
|
#EXTSIM |
Includes models of external subsimulators. |
|
#ENDEXTSIM |
Closes an #EXTSIM instruction. |