There have been errors found in MASM while using the previous version of this macro. Those errors are hard to debug and you should discontinue use of that macro. Luckily, a solution was found by Maelstrom and implemented looks like:
CTEXT MACRO y:VARARG

LOCAL sym, [b]dummy[/b]
[b] dummy EQU $ ;; MASM error fix[/b]
CONST segment
IFIDNI <y>,<>
sym db 0
ELSE
sym db y,0
ENDIF
CONST ends
EXITM <OFFSET sym>
ENDM
I have posted this here because there are several threads here because of this problem and maybe some people don't read all the threads. If you use many macros then you should read the thread outlining the class of errors created by MASM.
Posted on 2002-09-29 22:43:46 by bitRAKE