POV-Ray : Newsgroups : povray.general : Undefine macro? : Re: Undefine macro? Server Time
20 Nov 2024 00:43:52 EST (-0500)
  Re: Undefine macro?  
From: Trevor Quayle
Date: 7 Dec 2001 07:33:41
Message: <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

"Mark Wagner" <mar### [at] gtenet> wrote in message
news:3c107ef4@news.povray.org...
>
> Rune wrote in message <3c0f7ffe@news.povray.org>...
> >I really need to be able to undefine macros, but it doesn't seem to be
> >possible...?
>
>
> You should be able to "undefine" a macro by redefining it as something
like:
>
> #macro mymacro(a,b,c)
>   /* A macro that does nothing */
> #end
>
> --
> Mark
>
>


Post a reply to this message

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