POV-Ray : Newsgroups : povray.newusers : ifdef () and if defined () : Re: ifdef () and if defined () Server Time
5 Sep 2024 12:17:11 EDT (-0400)
  Re: ifdef () and if defined ()  
From: Bob H 
Date: 24 Oct 2000 15:58:56
Message: <39f5ea00@news.povray.org>
"KalleK" <kal### [at] gmxde> wrote in message news:39f5b16c@news.povray.org...
> Does a difference exists between
> a ) #ifdef (token)
> and
> b) #if defined (token)
> ?
> If not: do we need both?
> Selfanswering: the difference between a condition and a value - 'defined'
> could be used without conditions. Maybe that's the sense.
> Is that right?

defined is apparently exclusive to file #fopen accesses so that the existence
may be checked for during parse time.
I tried outside of such a situation and it seems invalid.

Bob


Post a reply to this message

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