| ||||||||
Technical Support On-Line Manuals AARM User's Guide | NUL OperatorWhen a formal parameter is omitted from a macro invocation, it is assigned a value of NULL. You can check for NULL parameters by using the NUL operator in an IF control statement in the macro. The NUL operator requires an argument. If no argument is found, NUL returns a value of 0. For example:
EXAMPLE MACRO X
IF NUL X
EXITM
ENDIF
NOP
ENDM
EXAMPLE ; Invoke the macro with no parameters
;Nothing is output since the macro exits (because the x parameter is NULL)
Note
| |||||||
| ||||||||