diff options
author | 2016-01-19 17:09:41 +0100 | |
---|---|---|
committer | 2016-01-19 17:10:17 +0100 | |
commit | 1a7b8364f6b13ec4a70cea8b84d39fe417129af8 (patch) | |
tree | ef2c78cf2d92f21f1a4e96fe17e179d99bda3753 /src | |
parent | 62c0bda9522b3b6572e99ab179c77b0146e00de9 (diff) |
fixed issue with -lx (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/timer.cpp | 11 | ||||
-rw-r--r-- | src/emu/timer.h | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/emu/timer.cpp b/src/emu/timer.cpp index da5ea876c68..f1a7ea44dd5 100644 --- a/src/emu/timer.cpp +++ b/src/emu/timer.cpp @@ -50,6 +50,17 @@ timer_device::timer_device(const machine_config &mconfig, std::string tag, devic //------------------------------------------------- +// static_configure_generic_empty - configuration +// helper to set up a generic timer +//------------------------------------------------- + +void timer_device::static_configure_generic_empty(device_t &device) +{ + timer_device &timer = downcast<timer_device &>(device); + timer.m_type = TIMER_TYPE_GENERIC; +} + +//------------------------------------------------- // static_configure_generic - configuration // helper to set up a generic timer //------------------------------------------------- diff --git a/src/emu/timer.h b/src/emu/timer.h index 6faa51318ec..03f42e5ba51 100644 --- a/src/emu/timer.h +++ b/src/emu/timer.h @@ -32,7 +32,7 @@ #define MCFG_TIMER_ADD_NONE(_tag) \ MCFG_DEVICE_ADD(_tag, TIMER, 0) \ - timer_device::static_configure_generic(*device, timer_device_expired_delegate()); + timer_device::static_configure_generic_empty(*device); #define MCFG_TIMER_DRIVER_ADD(_tag, _class, _callback) \ MCFG_DEVICE_ADD(_tag, TIMER, 0) \ timer_device::static_configure_generic(*device, timer_device_expired_delegate(&_class::_callback, #_class "::" #_callback, NULL, (_class *)0)); @@ -85,6 +85,7 @@ public: // inline configuration helpers static void static_configure_generic(device_t &device, timer_device_expired_delegate callback); + static void static_configure_generic_empty(device_t &device); static void static_configure_periodic(device_t &device, timer_device_expired_delegate callback, const attotime &period); static void static_configure_scanline(device_t &device, timer_device_expired_delegate callback, std::string screen, int first_vpos, int increment); static void static_set_callback(device_t &device, timer_device_expired_delegate callback); |