aboutsummaryrefslogtreecommitdiffstats
path: root/src/solar.h
diff options
context:
space:
mode:
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
+