Example 14. Producing Messages in a Macro

TEST .macro x,y ! ! This macro checks for the correct number of parameters. ! It generates an error message if x and y are not present. ! ! The first line tests for proper input. ! .if ($symlen(x) + ||$symlen(y) == 0) .emsg "ERROR --missing parameter in call to TEST" .mexit .else . . .endif .if . . .endif .endm