Mike the Elder <nomail@nomail> wrote:
> #macro NextX(X,Dir)
> #switch(Dir)
> #case(0)
> #case(1)
> #declare RetXVal = X+1;
> #break
> #case(2)
> #declare RetXVal = X;
> #break
> #case(3)
> #case(4)
> #declare RetXVal = X-1;
> #break
> #case(5)
> #declare RetXVal = X;
> #break
> #end
> #end
No, not like that. Use #local and put the identifier name at the end
of the macro.
--
- Warp
Post a reply to this message
|