POV-Ray : Newsgroups : povray.general : multiple calls to inc : Re: multiple calls to inc Server Time
2 Aug 2024 06:17:09 EDT (-0400)
  Re: multiple calls to inc  
From: ZeSly
Date: 22 Dec 2004 07:35:06
Message: <41c969fa$1@news.povray.org>

>> colors.inc, as well as just about every "standard" inc files have a 
>> test to ensure they are only effectively included once in any scane. 
>> It test for the non-existance of a variable, if it don't exists, it 
>> create it and proceed with the bulk of the file.
>>
>> Alain
> 
> Right but you have to code for it:
> 
> #ifndef(Colors_Inc_Temp)
>   #include "colors.inc"
> #end

No, this test is *inside* colors.inc.

-- 
ZeSly
http://perso.wanadoo.fr/zesly/


Post a reply to this message

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