Alain Martel <kua### [at] videotronca> wrote:
> > I was playing around with #ifdef recently; just experimenting.
> > I put a nonsense string expression into it-- not actually defined anywhere-- to
> > see what would happen:
> > #ifdef("htenneK")
> > ...
> As I see it, #ifdef() test the existence of an entity.
> With the quotes, the string DO exist, IS defined, even if it only exist
> locally. So, the test returns true.
> Without the quotes, it test if the variable exist, and, if it wasn't
> #declare beforehand, will return false.
> So, I think that it behave as it should.
agree, ref: <https://wiki.povray.org/content/Reference:Strings#String_Literals>
Post a reply to this message