|
![](/i/fill.gif) |
[GDS|Entropy] wrote:
> I have the following macro, but I can't call multiple instances of it
> without overriding the previous values...how can I rewrite this macro to fix
> this?
Try something like this:
#macro Fill(A,N)
#local i = 0;
#while (i < N)
#declare A[i] = i;
#local i = i + 1;
#end
#end
#declare Sp = 60;
#declare randVectArray = array[Sp];
Fill(randVectArray, Sp)
#declare Sp2 = 50;
#declare randVectArray2 = array[Sp2];
Fill(randVectArray2, Sp2)
Post a reply to this message
|
![](/i/fill.gif) |