Exit macro.
EXITM
The EXITM directive causes immediate termination of a macro expansion. It is useful when used with the conditional assembly directive IF to terminate macro expansion when error conditions are detected.
A label is not allowed with this directive.
CALC MACRO XVAL,YVAL
IF XVAL<0
FAIL 'Macro parameter value out of range'
EXITM ; Exit macro
ENDIF
.
.
ENDM