|
|
Am 23.03.2017 um 17:03 schrieb Bald Eagle:
> I tried to write a macro using optional parameters.
>
> POV-Ray gave me back errors, saying it wanted n parameters, but I only supplied
> x.
>
> The number of parameters I specified was n, ranging from 0 to 4.
> I tried supplying 0-3, but it seemed to want all 4.
You can omit the optional parameters, but you still have to specify the
commas. For example:
#macro Foo(A, optional B, C)
...
#end
Foo(1,,3)
Currently, this is true even if the optional parameters are at the end
of the parameter list:
#macro Foo(A, B, optional C)
...
#end
Foo(1,2,)
Post a reply to this message
|
|