summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/timer.h')
-rw-r--r--src/devices/machine/timer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/devices/machine/timer.h b/src/devices/machine/timer.h
index 8fc08cf2972..022647061ca 100644
--- a/src/devices/machine/timer.h
+++ b/src/devices/machine/timer.h
@@ -113,6 +113,11 @@ public:
}
template <typename Object> void set_callback(Object &&cb) { m_callback = std::forward<Object>(cb); }
+ template <class FunctionClass> void set_callback(void (FunctionClass::*callback)(timer_device &, void *, s32), const char *name)
+ {
+ set_callback(expired_delegate(callback, name, nullptr, static_cast<FunctionClass *>(nullptr)));
+ }
+
void set_start_delay(const attotime &delay) { m_start_delay = delay; }
void config_param(int param) { m_param = param; }