This is one of several macros I wish to display:
<PRE CLASS="special macro>
;;
;; Reverse argument list
;;
reverse_args MACRO arglist:req
local txt, arg
txt textequ <>
% FOR arg, <arglist>
txt CATSTR <arg>, <,>, txt
ENDM
txt SUBSTR txt, 1, @SizeStr( %txt ) - 1
txt CATSTR <!<>, txt, <!>>
EXITM txt
ENDM
;;
;; Call Windows API Function
;;
ApiCall MACRO thecall:req, arglist:vararg
local count
count = 0
% FOR argn, reverse_args( <arglist> )
if (type argn) eq 1 ;; if byte label
push offset argn ;; push address
else
push argn
endif
count = count + 4
ENDM
txt TEXTEQU <>
txt CATSTR <_imp__>, <thecall>, <@>, %(count)
txt2 TEXTEQU <>
txt2 CATSTR <_imp__>, <thecall>, <@>, %(count), <:DWORD>
IFNDEF <txt2>
extern txt2 ;; define it !
ENDIF
call dword ptr [txt]
ENDM
</PRE>
Unfortunately, many of the '<' and '>' prevent it
from displaying properly. Can anyone offer advice,
rather have me resort to replacing them with the
respective < and > ?