mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Fix 01557: dealem: Assertion
This commit is contained in:
parent
68f4aedb2d
commit
5cd63ef3de
@ -32,7 +32,7 @@
|
||||
/* device types */
|
||||
enum
|
||||
{
|
||||
TYPE_MC6845,
|
||||
TYPE_MC6845 = 0,
|
||||
TYPE_MC6845_1,
|
||||
TYPE_C6545_1,
|
||||
TYPE_R6545_1,
|
||||
@ -119,8 +119,12 @@ INLINE mc6845_t *get_safe_token(const device_config *device)
|
||||
assert(device != NULL);
|
||||
assert(device->token != NULL);
|
||||
assert((device->type == DEVICE_GET_INFO_NAME(mc6845)) ||
|
||||
(device->type == DEVICE_GET_INFO_NAME(mc6845_1)) ||
|
||||
(device->type == DEVICE_GET_INFO_NAME(c6545_1)) ||
|
||||
(device->type == DEVICE_GET_INFO_NAME(r6545_1)));
|
||||
(device->type == DEVICE_GET_INFO_NAME(r6545_1)) ||
|
||||
(device->type == DEVICE_GET_INFO_NAME(h46505)) ||
|
||||
(device->type == DEVICE_GET_INFO_NAME(hd6845)) ||
|
||||
(device->type == DEVICE_GET_INFO_NAME(sy6545_1)));
|
||||
|
||||
return (mc6845_t *)device->token;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user