|
![](/i/fill.gif) |
"Thorsten Froehlich" <tho### [at] trf de> wrote in
news:3c55b94d@news.povray.org:
> In article <3c55a741@news.povray.org> , Warp <war### [at] tag povray org>
> wrote:
>
>> : It actually would increase parse time.
>>
>> Then use a trick sometimes used in C/C++. Instead of:
>
> Which is exactly what increases parse time! The POV-Ray parser still
> turns everything into tokens, only to ignore it - keep in mind the
> parser and what looks like a preprocessor is actually more or less
> *one* step, so it isn't very fast.
The parser would probably do something a little more intellegent if the
standard include files were not included directly but by wrappers, e.g.
rename colors.inc to something else and create a new colors.inc with the
following code:
#ifndef(Colors_Inc_Temp)
#declare Colors_Inc_Temp = version;
#version 3.5;
#include "realColors.inc"
#version Colors_Inc_Temp;
#else
I doubt it's worth the effort to do this, however...
Post a reply to this message
|
![](/i/fill.gif) |