aboutsummaryrefslogtreecommitdiffstats
path: root/src/solar.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-04 20:12:32 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-04 20:12:32 +0100
commit966cbb896949b50834709bc1eb9cc75d505e3148 (patch)
treee7cb23cdc5841b7bdc03a22c754c2b1c09572edd /src/solar.h
parentmacros (diff)
downloadradharc-966cbb896949b50834709bc1eb9cc75d505e3148.tar.gz
radharc-966cbb896949b50834709bc1eb9cc75d505e3148.tar.bz2
radharc-966cbb896949b50834709bc1eb9cc75d505e3148.tar.xz
...
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/solar.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/solar.h b/src/solar.h
index bb2def5..7afc78f 100644
--- a/src/solar.h
+++ b/src/solar.h
@@ -93,3 +93,15 @@
*/
double solar_elevation(double latitude, double longitude);
+
+/**
+ * Exit if time the is before year 0 in J2000.
+ *
+ * @return 0 on success, -1 on error.
+ */
+#if defined(TIMETRAVELLER)
+int check_timetravel(void);
+#else
+# define check_timetravel(_) 0
+#endif
+