mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
Added an attotime_is_never() function
This commit is contained in:
parent
a2a25f17e3
commit
3cb4cbfa70
@ -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__ */
|
#endif /* __ATTOTIME_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user