diff options
| author | 2015-12-19 18:22:19 -0500 | |
|---|---|---|
| committer | 2015-12-19 18:22:19 -0500 | |
| commit | de31dfcf585a4eb4d4eb7565f2c61b831188ce52 (patch) | |
| tree | ac4651f1b35c651ca2f386c057a4b3e8212a1e85 /src/emu/devdelegate.h | |
| parent | 58202e4605774b1309c127f5d705a870509b0e1e (diff) | |
Refactoring memory map validity checking
Diffstat (limited to 'src/emu/devdelegate.h')
| -rw-r--r-- | src/emu/devdelegate.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/devdelegate.h b/src/emu/devdelegate.h index 531bea5bd44..b688cd31261 100644 --- a/src/emu/devdelegate.h +++ b/src/emu/devdelegate.h @@ -74,7 +74,10 @@ public: device_delegate(const thistype &src, device_t &search_root) : basetype(src), device_delegate_helper(src.m_device_name) { bind_relative_to(search_root); } // perform the binding - void bind_relative_to(device_t &search_root) { if (!basetype::isnull()) basetype::late_bind(bound_object(search_root)); } + void bind_relative_to(device_t &search_root) { assert(&search_root != nullptr); if (!basetype::isnull()) basetype::late_bind(bound_object(search_root)); } + + // getter (for validation purposes) + const char *device_name() const { return m_device_name; } }; |
