POV-Ray : Newsgroups : povray.general : Macro problem : Re: Macro problem Server Time
29 Jul 2024 06:28:30 EDT (-0400)
  Re: Macro problem  
From: MichaelJF
Date: 11 Oct 2013 13:50:01
Message: <web.5258395730eb22c692cabf390@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> posfan12 <nomail@nomail> wrote:
> > #macro randsign()
> >  #if (rand(HPlanet_Seed_Value) > 0.5)
> >   1
> >  #else
> >   -1
> >  #end
> > #end
>
> It's not a bug, but by design (even though it might not be intuitive.)
>
> You have to assign the value you want to "return" from the macro to a
> local variable and then have the name of that variable as the last thing
> in the macro.
>
> --
>                                                           - Warp

>I have guessed that we had overlooked something. But is this issue really mentioned
within the documentary? A document
ary which is still closed to the users right now. And called a Wiki ...

Best regards,
Michael


Post a reply to this message

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