|
 |
"Kenneth" <kdw### [at] gmail com> wrote:
> A question out of curiosity (and using your #include file example above of the
> variable name #ifndef(FOO_INC_TEMP) : Is the reason for using such 'odd'
> variable names in #include files (of which some *are* rather odd) so that the
> chances of it being an *actual* variable name in a scene file are very low? In
> other words, are they purposely odd so that they won't be confused with other
> scene file variables that we would normally think to use? OR does it matter at
> all? (as #include files use #local variables, not #declared ones)
Yes, that's exactly the rationale behind the variable name. This is of
particular importance if the include file use "#declare" instead of "#local",
which some files do (and actually all files should, unless they are supposed to
be included multiple times) to detect whether they have been included before.
> By the way, in the 3.7 documentation concerning #version for SCENE use, it says
> (in error?), "Naturally the default setting for this option is #version 3.5."
> Should that say 3.62 now?
Looks like that portion of the docs is very much outdated.
Post a reply to this message
|
 |