P
Peng Yu
Hi,
I want a macro #expand that can be expanded to one of the following
depending on its argument
f(i1)
f(i1, i2)
f(i1, i2, i3)
...
For example,
expand(1) would give me f(i1)
expand(2) would give me f(i1, i2)
expand(3) would give me f(i1, i2, i3)
Is it possible to be done in macro? If it is possible, could you let
me know how to do it?
Thanks,
Peng
I want a macro #expand that can be expanded to one of the following
depending on its argument
f(i1)
f(i1, i2)
f(i1, i2, i3)
...
For example,
expand(1) would give me f(i1)
expand(2) would give me f(i1, i2)
expand(3) would give me f(i1, i2, i3)
Is it possible to be done in macro? If it is possible, could you let
me know how to do it?
Thanks,
Peng