From 3cb4cbfa70df186b4a778190f44d06c140849c77 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sat, 31 Oct 2009 20:52:32 +0000 Subject: [PATCH] Added an attotime_is_never() function --- src/emu/attotime.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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__ */