POV-Ray : Newsgroups : povray.unofficial.patches : Macros, includes and memory management : Re: Macros, includes and memory management Server Time
1 Sep 2024 18:12:53 EDT (-0400)
  Re: Macros, includes and memory management  
From: Chris Huff
Date: 19 Dec 2000 09:49:48
Message: <chrishuff-1F9497.09505319122000@news.povray.org>
In article <3a3f589f@news.povray.org>, Geoff Wedig 
<wed### [at] darwinepbicwruedu> wrote:

> So, any of you Megapov gurus got any ideas?  I this this is an 
> unsolveable limitation in the program, but maybe someone else has 
> found a way around it. 

Instead of defining a macro inside of another, change the value of a 
global variable and put all your macros in the file, with different 
names. Then, have the macro that you called(the one that was originally 
defined inside the other macro) decide what to do based on that 
variable. Probably the best way would be to use the #switch statement to 
call the desired macro.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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