I wrote 2 macroses to simplify using %args and %locals in my procs.
For example,for %local:
%macro LOCALS 1+
%push mycontext
%stacksize flat
%assign %$localsize 0
%local %1
enter %$localsize,0
%endmacro
Proc1:
LOCALS v:dword
...
Proc2:
LOCALS v:dword
...
The PROBLEM is that it dose not allow to make local vars with the same names in 2 (for example) procedures.
In the above code will be compile error((LOCALS:4) `%local' missing argument parameter) at line LOCALS in Proc2
BUT, when i use above code itself (without macro LOCALS) - ALL WORKS good.
Proc1:
%push mycontext
%stacksize flat
%assign %$localsize 0
%local v:dword
enter %$localsize,0
...
Proc2:
%push mycontext
%stacksize flat
%assign %$localsize 0
%local v:dword
enter %$localsize,0
...
Please, help, how should i modify LOCALS macro in order to use vars with identical (the same) names ?