| Previous | 199869 Revisions | Next |
| r20949 Monday 11th February, 2013 at 19:07:50 UTC by Oliver Stöneberg |
|---|
| fixed src/emu/cpu/sh2/sh2.c compilation without USE_SH2DRC (nw) |
| [src/emu/cpu/sh2] | sh2.c |
| r20948 | r20949 | |
|---|---|---|
| 124 | 124 | INLINE sh2_state *get_safe_token(device_t *device) |
| 125 | 125 | { |
| 126 | 126 | assert(device != NULL); |
| 127 | assert(device->token != NULL); | |
| 128 | assert(device->type() == CPU); | |
| 129 | assert(cpu_get_type(device) == CPU_SH1 || | |
| 130 | cpu_get_type(device) == CPU_SH2); | |
| 127 | assert(device->type() == SH1 || | |
| 128 | device->type() == SH2); | |
| 131 | 129 | return (sh2_state *)downcast<legacy_cpu_device *>(device)->token(); |
| 132 | 130 | } |
| 133 | 131 |
| Previous | 199869 Revisions | Next |