POV-Ray : Newsgroups : povray.newusers : Parse Error in Stones1.inc : Re: Parse Error in Stones1.inc Server Time
29 Jul 2024 06:26:33 EDT (-0400)
  Re: Parse Error in Stones1.inc  
From: Alain
Date: 25 Mar 2007 07:06:26
Message: <460665c2$1@news.povray.org>
neelakantankk nous apporta ses lumieres en ce 25-03-2007 06:29:
> Just a question. If "stones.inc" uses "colors.inc" and i include
> "colors.inc" in both "stones.inc" and my main file, will "colors.inc" be
> parsed twice? or will it give an error?
> 
> 
It will be parsed only once. The default includes include a guard against that case.
Look at the following lines:
#ifndef(Colors_Inc_Temp)

#declare Colors_Inc_Temp = version;

Everything in colors.inc is contained in that #ifndef (means if NOT deffined).

-- 
Alain
-------------------------------------------------
A day for firm decisions!!!!!  Or is it?


Post a reply to this message

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