POV-Ray : Newsgroups : povray.advanced-users : pass variable from macro? : Re: pass variable from macro? Server Time
5 Jul 2024 16:21:57 EDT (-0400)
  Re: pass variable from macro?  
From: Warp
Date: 27 Jan 2008 02:14:45
Message: <479c2f65@news.povray.org>
nemesis <nam### [at] gmailcom> wrote:
> "[GDS|Entropy]" <gds### [at] hotmailcom> wrote:
> > So essentially a macro in pov-sdl, when called, returns a code
> > block/whatever its contents happen to be?

> it doesn't "return" anything:  it textually copies it contents with parameters
> substituted for real values.

  Not really. POV-Ray doesn't copy anything. When a macro call is encountered
it jumps to the macro body and continues parsing there. When the macro has
been parsed, it returns to the origin of the jump.

  The difference can be seen eg. with #locals.

-- 
                                                          - Warp


Post a reply to this message

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