src/emu/machine/pit8253.c
| r7462 | r7463 | |
| 102 | 102 | ***************************************************************************/ |
| 103 | 103 | |
| 104 | 104 | /* makes sure that the passed in device is of the right type */ |
| 105 | | INLINE pit8253_t *get_safe_token(running_device *device) { |
| 106 | | assert( device != NULL ); |
| 107 | | assert( device->token != NULL ); |
| 108 | | assert( ( device->type == DEVICE_GET_INFO_NAME(pit8253) ) || |
| 109 | | ( device->type == DEVICE_GET_INFO_NAME(pit8254) ) ); |
| 110 | | return ( pit8253_t * ) device->token; |
| 105 | INLINE pit8253_t *get_safe_token(running_device *device) |
| 106 | { |
| 107 | assert(device != NULL); |
| 108 | assert(device->token != NULL); |
| 109 | assert((device->type == PIT8253) || (device->type == PIT8254)); |
| 110 | |
| 111 | return (pit8253_t *) device->token; |
| 111 | 112 | } |
| 112 | 113 | |
| 113 | 114 | |