of times a macro is used:
Code: Select all
Macro TestIt(x,y)
MOV eax,x
CMP eax,y
JE l_ok#MacroCallCount
CALL ErrorRoutine
ok#MacroCallCount:
EndMacro
First time TestIt(vara,123) ->
Code: Select all
MOV eax,vara
CMP eax,123
JE l_ok1
CALL ErrorRoutine
ok1:
Code: Select all
MOV eax,varb
CMP eax,456
JE l_ok2
CALL ErrorRoutine
ok2:
pasted with #
Of course it should be a counter that is privat to each macro.