POV-Ray : Newsgroups : povray.general : #ifdef fails? : Re: #ifdef fails? Server Time
29 Jul 2024 06:25:26 EDT (-0400)
  Re: #ifdef fails?  
From: Ger
Date: 17 Nov 2012 17:44:04
Message: <50a81334$1@news.povray.org>
Christian Froeschlin wrote:

> Ger wrote:
> 
>>     #fopen FN FileName read
>>     #ifdef (FN)
>>       #while (defined(FN))
>> #read ( FN , Vector)
>> action( Vector )
>>       #end
>>     #end
> 
> the documentation of #fopen states that IDENTIFIER should be
> an undefined identifier. So it might be that the #ifdef test
> only works if FN was not alreaday defined prior to #fopen.

From the manual
<
You may use #ifdef FILE_HANDLE_IDENTIFIER to see if a file is open.
>
-- 
Ger


Post a reply to this message

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