src/mess/machine/docg3.c
| r9823 | r9824 | |
| 64 | 64 | INLINE diskonchip_g3_t *get_token( running_device *device)
|
| 65 | 65 | {
|
| 66 | 66 | assert(device != NULL);
|
| 67 | | assert(device->type == DISKONCHIP_G3);
|
| 68 | | assert(device->token != NULL);
|
| 67 | assert(device->type() == DISKONCHIP_G3);
|
| 68 | assert(downcast<legacy_device_base *>(device)->token() != NULL);
|
| 69 | 69 | return (diskonchip_g3_t *)downcast<legacy_device_base *>(device)->token();
|
| 70 | 70 | }
|
| 71 | 71 | |
| 72 | 72 | INLINE const diskonchip_g3_config *get_config( running_device *device)
|
| 73 | 73 | {
|
| 74 | 74 | assert(device != NULL);
|
| 75 | | assert(device->type == DISKONCHIP_G3);
|
| 76 | | assert(device->inline_config != NULL);
|
| 75 | assert(device->type() == DISKONCHIP_G3);
|
| 76 | assert(downcast<const legacy_device_config_base &>(device->baseconfig()).inline_config() != NULL);
|
| 77 | 77 | return (const diskonchip_g3_config *)downcast<const legacy_device_config_base &>(device->baseconfig()).inline_config();
|
| 78 | 78 | }
|
| 79 | 79 | |