POV-Ray : Newsgroups : povray.newusers : ifdef () and if defined () Server Time
5 Sep 2024 14:18:42 EDT (-0400)
  ifdef () and if defined () (Message 1 to 2 of 2)  
From: KalleK
Subject: ifdef () and if defined ()
Date: 24 Oct 2000 11:57:32
Message: <39f5b16c@news.povray.org>
Hi all!
Just a small question:
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?
cukk


Post a reply to this message

From: Bob H 
Subject: Re: ifdef () and if defined ()
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.