POV-Ray : Newsgroups : povray.general : Undefine macro? : Re: Undefine macro? Server Time
7 Aug 2024 01:22:48 EDT (-0400)
  Re: Undefine macro?  
From: Trevor Quayle
Date: 7 Dec 2001 07:37:49
Message: <3c10b81d$1@news.povray.org>
"Trevor Quayle" <Tin### [at] hotmailcom> wrote in message
news:3c10b725$1@news.povray.org...
> This may not be what rune is looking for, if  I understand correctly.  If
> you do this, you may end up getting an error when you try to use the
macro.
> If you could undefine it, then you could check if it is defined, and only
> run it if it was.
> Or perhaps I'm just putting words in your mouth.
>
> -tgq
>

Just thinking, if this is the case perhaps you could do something like:

#macro MyMacro(a,b,c)
    "XXX"
#end

then check using:

#if(MyMacro(a,b,c) != "XXX")
#end


-tgq


Post a reply to this message

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