POV-Ray : Newsgroups : povray.binaries.images : City SSC WIP 2 : Re: City SSC WIP 2 Server Time
11 Aug 2024 23:19:43 EDT (-0400)
  Re: City SSC WIP 2  
From: stephen parkinson
Date: 18 Feb 2004 12:46:36
Message: <4033a4fc@news.povray.org>
Dave Matthews wrote:
> 
>> All { braces must have a matching } brace. This scene just puts the 
>> opening braces in the macro, and the closing braces after the calls to 
>> that macro. Cleanly indented, the code's a lot easier to understand:
>>
>> #macro C()
>>     function {
>>         pigment {crackle
>> #end
>>
>> #local A = C() solid}}
>>
>> #local B = C() }}
>>
>> This is equivalent to:
>>
>> #local A = function {pigment {crackle solid}}
>>
>> #local B = function {pigment {crackle}}
>>
> OH.  Clever.  I guess that if I traced it out the whole code, I should 
> have seen that.
> 
> Thanks
> 
> Dave Matthews
> 

is there a way of capturing the expanded source ?

similar to gcc -S||-s ??

stephen


Post a reply to this message

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