|
|
> Am 07.06.2011 21:14, schrieb stbenge:
>> Hi,
>>
>> This will create a wall consisting of irregularly-shaped rectangular
>> bricks.
>
> I'm wondering: Is there a reason the #include "shapes.inc" statement is
> part of the OTO_Object macro, thereby repeatedly including that file
> every time the macro is called?
>
The macro need something from shapes.inc and include it just in case.
The current #include statement should be replaced by:
#ifndef( Shapes_Inc_Temp ) #include "shapes.inc" #end
That way, if shapes.inc is already included, there will be no attempt to
reinclude it.
This will improve performances. You'll no longer need to open the file
and reat it all just to skip almost all of it's content.
Alain
Post a reply to this message
|
|