5.8.55. MEXIT directive

The MEXIT directive is used to exit a macro definition before the end.

Syntax

The syntax of MEXIT is:

MEXIT

Usage

Use MEXIT when you need an exit fromwithin the body of a macro. Any unclosed WHILE...WEND loops or IF...ENDIF conditions are closed by the assembler before the macro is exited.

See also MACRO directive.

Example

		MACRO
$abc		macro	abc			$param1,$param2
		; code
		WHILE condition1
			; code
			IF condition2
				; code
				MEXIT	
			ELSE
				; code
			ENDIF
		WEND
		; code
		MEND
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential