diff options
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 |
commit | 3cb4cbfa70df186b4a778190f44d06c140849c77 (patch) | |
tree | d9de14664b70e4a8be2f13b1d61bb6e4090f09a5 | |
parent | a2a25f17e399ebcb93f9437cb9eed4b357c18d4c (diff) |
Added an attotime_is_never() function
-rw-r--r-- | src/emu/attotime.h | 11 |
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__ */ |