DOCERR: ENDM Can't Be Used to Return Value from Macro Function (72705)



The information in this article applies to:

  • Microsoft Macro Assembler (MASM) 6.0
  • Microsoft Macro Assembler (MASM) 6.0a
  • Microsoft Macro Assembler (MASM) 6.0b

This article was previously published under Q72705

SUMMARY

In the online help for the Microsoft Macro Assembler (MASM) version 6.0, the definition for the MACRO directive lists the ENDM directive as taking an optional value that is returned from the macro. This is incorrect. The only way to write a macro function that returns a value is with the EXITM directive.

Modification Type:MajorLast Reviewed:10/29/2003
Keywords:KB72705