chneves
12th January 2007, 22:13
Hi
I need make a "Macro Substitution" how below:
declaration:
(...)
extern domain tcpdno op01.o, op02.o, op03.o, (...), op40.o
#define OPNO(x) op##x##.o
(...)
for i = 1 to 40
aux.op = edit$(i, "Z9")
var.array(1, i) = edit$(OPNO(aux.op), "999999")
endfor
But generate a error, because it is pasting "aux.op" and do not "01", "02"... (Value of aux.op)
Then it is staying "opaux.op.o", and do not "op01.o", "op02.o" how would have to be.
I need help, please...
tks
I need make a "Macro Substitution" how below:
declaration:
(...)
extern domain tcpdno op01.o, op02.o, op03.o, (...), op40.o
#define OPNO(x) op##x##.o
(...)
for i = 1 to 40
aux.op = edit$(i, "Z9")
var.array(1, i) = edit$(OPNO(aux.op), "999999")
endfor
But generate a error, because it is pasting "aux.op" and do not "01", "02"... (Value of aux.op)
Then it is staying "opaux.op.o", and do not "op01.o", "op02.o" how would have to be.
I need help, please...
tks