EXITM

Exit macro.

EXITM

Remarks

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.

Example

CALC MACRO XVAL,YVAL

IF XVAL<0

FAIL 'Macro parameter value out of range'

EXITM ; Exit macro

ENDIF

.

.

ENDM

See also

DUP

DUPA

DUPC

MACRO