POV-Ray : Newsgroups : povray.beta-test : semicolon not expected : Re: semicolon not expected Server Time
30 Jul 2024 10:16:45 EDT (-0400)
  Re: semicolon not expected  
From: Ron Parker
Date: 14 Jan 2002 16:06:36
Message: <slrna46i2u.bc5.ron.parker@fwi.com>
On 7 Jan 2002 09:00:15 -0500, Warp wrote:

>: #macro Test2() #if(yes) 2 #end #end
>: #local F=Test2();
> 
>   Isn't the "right way" of returning values from a macro something like:
> 
> #macro Test2() #if(yes) #local res=2; #end res #end

Except for that minor detail of it causing crashes when you return a local.

-- 
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions


Post a reply to this message

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