nasm64developer
-
2003-12-04
- priority: 5 --> 1
When defining a multi-line macro, or checking for
the presence of a multi-line macro, one can pro-
vide a desired parameter count. As of filing this
request, the preprocessor performs a check for a
suitable overlap, instead of a strict match:
%macro m 1-3
A: %1 %2 %3
%endmacro
%macro m 2 ; warns... but shouldn't, because
B: %1 %2 ; this is not a re-definition but
%endmacro ; a successful overloading
%ifmacro 3-5 ; matches m 1-3... but shouldn't,
m 1,2,3,4 ; because this still fails
%endif
In my local forked version of NASM I've switched
to a check for a strict match, i.e. min1==min2 &&
max1==max2 && plus1==plus2.
Let me know if you're interested in more details.