POV-Ray : Newsgroups : povray.newusers : Parse Error in Stones1.inc Server Time
29 Jul 2024 04:32:07 EDT (-0400)
  Parse Error in Stones1.inc (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Alain
Subject: Re: Parse Error in Stones1.inc
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

From: neelakantankk
Subject: Re: Parse Error in Stones1.inc
Date: 25 Mar 2007 15:35:02
Message: <web.4606dc688602b2cb9abbe3230@news.povray.org>
Thanks for the info guys :-))

Cheers

Neelakantan


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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