summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-20 14:24:38 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-20 14:24:49 -0400
commit09ed2579253553f2e9f6d8ba52c6dfb965124dc5 (patch)
tree36fbe408c4ce30a9df315877800f814cbdf05f84 /src/emu
parent2beba4ce73fad917c7159a39939bace54f76494b (diff)
machine().device(tag) is now deprecated (nw)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/machine.h4
1 files 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 <class DeviceClass> inline DeviceClass *device(const char *tag) { return downcast<DeviceClass *>(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 <class DeviceClass> inline DeviceClass *device(const char *tag) { return downcast<DeviceClass *>(device(tag)); }
// immediate operations
int run(bool quiet);