POV-Ray : Newsgroups : povray.newusers : Use of macros returning values : Re: Use of macros returning values Server Time
29 Jul 2024 14:19:00 EDT (-0400)
  Re: Use of macros returning values  
From: Warp
Date: 7 Sep 2005 13:08:02
Message: <431f1e72@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Why not just add the ";"s that it's asking for.

  Because you might want to use the macro somewhere where you shouldn't
use a ";".

  The proper way is:

#macro Whatever(...)
  #if(something)
    #local Result = foo;
  #else
    #local Result = bar;
  #end

  Result
#end

-- 
                                                          - Warp


Post a reply to this message

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