POV-Ray : Newsgroups : povray.general : Empty value for variable : Re: Empty value for variable Server Time
26 Apr 2024 16:19:35 EDT (-0400)
  Re: Empty value for variable  
From: yesbird
Date: 6 Feb 2023 13:30:00
Message: <web.63e146b35d560c7480f94ee210800fb2@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
Hi,
> my own, on the wiki.  however, there's also a macro in 'pvars.inc' (on wiki)
> which has only optional arguments.

Looks like there is some limitation on number of optional args:
----------------------------------------------
#macro _vector(optional p1, optional p2, optional p3)
#end

_vector(1, 2, 3) // OK
_vector(1, 2,  ) // OK
_vector(1,     ) // Error
----------------------------------------------

I wonder how is your code works ?

Regards,
--
YB


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.