=Bob= wrote:
>
> Hi Remco,
>
> The way I have it set up, there's a macro to
> set the variables to their default values. PovRay
> doesn't allow enough parameters to a macro to
> handle them all, so I had no choice but to make
> most of them global anyway. So what I've been
> doing is calling the macro to set default values
> then changing just the ones I want. Does that
> sound like a good way to do it? I couldn't think
> of better way.
>
> =Bob=
>
Seems fair (if I understand it right).
The way I often do it is use the main variables as parameters for the macro and
declare (#local) the others in the macro if they aren't already declared
(IFNDEF).
Remco
Post a reply to this message
|