Is it possible to do something like this:


macro log [arg]
{
common
jmp .over
szText db "arg", 0 ; How can i make arg "expand"?
.over:
invoke WriteFile, hFile, szText, ....
arg
.....
}

Posted on 2003-06-11 14:19:19 by Aaro
Remove " around arg and it should be working.
Posted on 2003-06-11 16:08:22 by comrade
Thx but it won't work.. This is what i'm wanting to do:


log invoke Foo, Bar

Should expand to:


jmp .over
szText db "invoke Foo, Bar",0
.over:
invoke WriteFile, hFile, szText, ...
invoke Foo, Bar
...
Posted on 2003-06-12 06:05:37 by Aaro
No, no, put in quotes in call to macro log:
log "invoke Foo, Bar"
Posted on 2003-06-12 06:53:41 by comrade
Won't work


jmp .over
szText db "invoke Foo, Bar",0
.over:
invoke WriteFile, hFile, szText, ...
"invoke Foo, Bar" ; Error here
...
Posted on 2003-06-17 07:50:22 by Aaro