POV-Ray : Newsgroups : povray.general : #ifdef fails? : #ifdef fails? Server Time
29 Jul 2024 06:29:13 EDT (-0400)
  #ifdef fails?  
From: Ger
Date: 17 Nov 2012 14:22:20
Message: <50a7e3ec$1@news.povray.org>
Consider then following code;

    #fopen FN FileName read
    #ifdef (FN)
      #while (defined(FN))
	#read ( FN , Vector)
	action( Vector )
      #end
    #end

After processing Filename001 - FileName100, the next file doesn't exist 
(FileName101). Afaik #ifdef (FN) should catch that and not allow the #while 
loop to continue.

Or am I missing something?
-- 
Ger

Using Pov 3.7 on Linux


Post a reply to this message

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