POV-Ray : Newsgroups : povray.general : tau : tau Server Time
26 Apr 2024 02:43:34 EDT (-0400)
  tau  
From: Bald Eagle
Date: 13 Sep 2018 18:35:01
Message: <web.5b9ae5d1f030c6cb458c7afe0@news.povray.org>
I've been hopping between 3.7, and other later versions.

What is the best (most robust and reliable) way to determine if tau is defined,
and if not, set it's value?

I start off with #version version;

then:

#if (version < 3.8)
 #ifndef (tau)
    #declare tau = 2*pi;
    #end
#end


#if (version < 3.8)
 #ifndef (tau)
    #declare tau = 2*pi;
    #end
#end

I get:

Parse Warning: Tried to test whether a reserved keyword is defined. Test result
may not be what you expect.
Parse Error: Expected 'undeclared identifier', float function 'tau' found
instead


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.