summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2009-10-31 20:52:32 +0000
committer Nathan Woods <npwoods@mess.org>2009-10-31 20:52:32 +0000
commit3cb4cbfa70df186b4a778190f44d06c140849c77 (patch)
treed9de14664b70e4a8be2f13b1d61bb6e4090f09a5
parenta2a25f17e399ebcb93f9437cb9eed4b357c18d4c (diff)
Added an attotime_is_never() function
-rw-r--r--src/emu/attotime.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emu/attotime.h b/src/emu/attotime.h
index a7ecd5ab593..cdd83e5a23f 100644
--- a/src/emu/attotime.h
+++ b/src/emu/attotime.h
@@ -426,4 +426,15 @@ INLINE attotime attotime_max(attotime _time1, attotime _time2)
}
+/*-------------------------------------------------
+ attotime_is_never - return whether or not an
+ attotime is attotime_never
+-------------------------------------------------*/
+
+INLINE int attotime_is_never(attotime _time)
+{
+ return (_time.seconds >= ATTOTIME_MAX_SECONDS);
+}
+
+
#endif /* __ATTOTIME_H__ */