From 09ed2579253553f2e9f6d8ba52c6dfb965124dc5 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 20 May 2018 14:24:38 -0400 Subject: machine().device(tag) is now deprecated (nw) --- src/emu/machine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/machine.h b/src/emu/machine.h index 303536df354..e08775f389a 100644 --- a/src/emu/machine.h +++ b/src/emu/machine.h @@ -210,8 +210,8 @@ public: bool allow_logging() const { return !m_logerror_list.empty(); } // fetch items by name - inline device_t *device(const char *tag) const { return root_device().subdevice(tag); } - template inline DeviceClass *device(const char *tag) { return downcast(device(tag)); } + [[deprecated("absolute tag lookup; use subdevice or finder instead"]] inline device_t *device(const char *tag) const { return root_device().subdevice(tag); } + [[deprecated("absolute tag lookup; use subdevice or finder instead"]] template inline DeviceClass *device(const char *tag) { return downcast(device(tag)); } // immediate operations int run(bool quiet); -- cgit v1.2.3