|
![](/i/fill.gif) |
clipka wrote:
> Am 19.06.2010 22:37, schrieb stbenge:
>
>> Is there a method for finding out if an .inc file was included from
>> another file, within the included file itself?
>
> None that I know of - unless you know which file(s) it might be included
> by, and setting a certain variable there before including. E.g.:
>
> //---------------------------
> // my_scene.pov
> //---------------------------
> #declare MY_INCLUDE_FLAG = 1;
> #incude "my_include_file.inc"
> ...
>
> //---------------------------
> // my_include_file.inc
> //---------------------------
> #ifndef (MY_INCLUDE_FLAG)
> // set camera etc.
> #end
> ...
That's a good idea, thanks!
Post a reply to this message
|
![](/i/fill.gif) |