POV-Ray : Newsgroups : povray.general : Some more image to POV stuff in exchange for a good name : Re: Some more image to POV stuff in exchange for a good name Server Time
7 Jan 2025 22:12:35 EST (-0500)
  Re: Some more image to POV stuff in exchange for a good name  
From: Alain Martel
Date: 3 Jan 2025 16:28:35
Message: <67785683@news.povray.org>
Le 2025-01-03 à 16:19, Ilya Razmanov a écrit :
> On 03.01.2025 22:42, Leroy wrote:
> 
>> That works alright. But, I've use this for a long time
>>
>> #ifndef(Get)
>>   do what ever
>> #end
> 
> LOL. That's too simple to think of it ;-)))
> 
> 

The includes from the distribution use a trick like that.

#ifndef(Flag)
#declare Flag=version;
  do include stuff
#end

This prevent parsing the include multiple times if it get formally 
included and included by another include.


Post a reply to this message

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