POV-Ray : Newsgroups : povray.general : #undef use -- a question Server Time
30 Dec 2024 16:48:19 EST (-0500)
  #undef use -- a question (Message 1 to 3 of 3)  
From: Kenneth
Subject: #undef use -- a question
Date: 16 May 2013 03:55:01
Message: <web.51948fcf8e684efec2d977c20@news.povray.org>
Perhaps a naive question, but I want to make sure I understand this:

Does the simple use of #undef to un-define something cause any internal problems
in POV-Ray if the 'something' doesn't even exist? Or does it all *require* a
surrounding #ifdef block?


Post a reply to this message

From: clipka
Subject: Re: #undef use -- a question
Date: 16 May 2013 09:42:14
Message: <5194e236$1@news.povray.org>
Am 16.05.2013 09:50, schrieb Kenneth:
> Perhaps a naive question, but I want to make sure I understand this:
>
> Does the simple use of #undef to un-define something cause any internal problems
> in POV-Ray if the 'something' doesn't even exist? Or does it all *require* a
> surrounding #ifdef block?

You'll get a parse warning if you try, but if you can live with that 
there's nothing to worry about.


Post a reply to this message

From: Kenneth
Subject: Re: #undef use -- a question
Date: 16 May 2013 10:55:01
Message: <web.5194f2201cdfd1e0c2d977c20@news.povray.org>
Thanks. Less typing to do. ;-)

I realize my question was an odd one; I'm trying to track down some 'unexpected'
behavior with functions in multiple #include files causing errors in a scene.
("..the function must be #undef first...")  Not a POV-Ray problem-- I found my
mistake.


Post a reply to this message

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