void timer_device_adjust_oneshot(const device_config *timer, attotime duration, INT32 param) { #ifndef NDEBUG timer_config *config = timer->inline_config; /* only makes sense for periodic timers */ assert(config->type == TIMER_TYPE_PERIODIC); #endif timer_device_adjust_periodic(timer, duration, param, attotime_never); }
void timer_device_adjust_oneshot(running_device *timer, attotime duration, INT32 param) { #ifdef MAME_DEBUG timer_config *config = (timer_config *)timer->baseconfig().inline_config; /* doesn't make sense for scanline timers */ assert(config->type != TIMER_TYPE_SCANLINE); #endif timer_device_adjust_periodic(timer, duration, param, attotime_never); }