diff options
author | Mattias Andrée <maandree@kth.se> | 2019-10-06 09:36:23 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-10-06 09:36:23 +0200 |
commit | 1be48c64b4e5df9e9b1ad69b3bb30b867b0abf9e (patch) | |
tree | 697f6c2fb5f3f91ab64e6ed32c45e483bf31e442 /doc/info/chap/macros.texinfo | |
parent | Add golden hour and blue hour (diff) | |
download | libred-1be48c64b4e5df9e9b1ad69b3bb30b867b0abf9e.tar.gz libred-1be48c64b4e5df9e9b1ad69b3bb30b867b0abf9e.tar.bz2 libred-1be48c64b4e5df9e9b1ad69b3bb30b867b0abf9e.tar.xz |
Clean up
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'doc/info/chap/macros.texinfo')
-rw-r--r-- | doc/info/chap/macros.texinfo | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/doc/info/chap/macros.texinfo b/doc/info/chap/macros.texinfo deleted file mode 100644 index 2d4a947..0000000 --- a/doc/info/chap/macros.texinfo +++ /dev/null @@ -1,49 +0,0 @@ -@node Macros -@chapter Macros - -@file{<libred.h>} defines a small set of macros -suitable for using a @code{#if} preprocessing directives. - -@table @code -@item LIBRED_IS_TWILIGHT(const double) -Evaluates to 1 if the given expression is between @math{-18.0} -and 0.0 (this is, between -@code{LIBRED_SOLAR_ELEVATION_ASTRONOMICAL_DUSK_DAWN} and -@code{LIBRED_SOLAR_ELEVATION_SUNSET_SUNRISE}), inclusively, -otherwise, this macro evaluates to 0. The input should be -the Sun's apparent elevation, and the macro evaluates to 1 -if it is currently twilight. The given expression is evaluted -either once or twice, therefore, it must not have side-effects. - -@item LIBRED_IS_CIVIL_TWILIGHT(const double) -Evaluates to 1 if the given expression is between @math{-6.0} -and 0.0 (this is, between -@code{LIBRED_SOLAR_ELEVATION_CIVIL_DUSK_DAWN} and -@code{LIBRED_SOLAR_ELEVATION_SUNSET_SUNRISE}), inclusively, -otherwise, this macro evaluates to 0. The input should be -the Sun's apparent elevation, and the macro evaluates to 1 -if it is currently civil twilight. The given expression is -evaluted either once or twice, therefore, it must not have -side-effects. - -@item LIBRED_IS_NAUTICAL_TWILIGHT(const double) -Evaluates to 1 if the given expression is between @math{-12.0} -and @math{-6.0} (this is, between -@code{LIBRED_SOLAR_ELEVATION_NAUTICAL_DUSK_DAWN} and -@code{LIBRED_SOLAR_ELEVATION_CIVIL_DUSK_DAWN}), inclusively, -otherwise, this macro evaluates to 0. The input should be the -Sun's apparent elevation, and the macro evaluates to 1 if it -is currently nautical twilight. The given expression is evaluted -either once or twice, therefore, it must not have side-effects. - -@item LIBRED_IS_ASTRONOMICAL_TWILIGHT(const double) -Evaluates to 1 if the given expression is between @math{-18.0} -and @math{-12.0} (this is, between -@code{LIBRED_SOLAR_ELEVATION_ASTRONOMICAL_DUSK_DAWN} and -@code{LIBRED_SOLAR_ELEVATION_NAUTICAL_DUSK_DAWN}), inclusively, -otherwise, this macro evaluates to 0. The input should be the -Sun's apparent elevation, and the macro evaluates to 1 if it is -currently astronomical twilight. The given expression is evaluted -either once or twice, therefore, it must not have side-effects. -@end table - |