diff options
| author | 2012-04-08 14:12:02 +0000 | |
|---|---|---|
| committer | 2012-04-08 14:12:02 +0000 | |
| commit | 35e09dd41cd03aff312a57959b893d3f6a028667 (patch) | |
| tree | 8f3722f6d0de9c0df55b8fc84c939316460b692e /src/emu/device.h | |
| parent | 8d66a9445a44da9438637aa17f3cd421564c8f5a (diff) | |
Clean-ups and version bumpmame0145u6
Diffstat (limited to 'src/emu/device.h')
| -rw-r--r-- | src/emu/device.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/device.h b/src/emu/device.h index df101d93911..0317dc17aa4 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -292,7 +292,7 @@ protected: class finder_base { friend class device_t; - + public: // construction/destruction finder_base(device_t &base, const char *tag); @@ -344,7 +344,7 @@ protected: // internal state _DeviceClass *m_target; }; - + // optional device finder template<class _DeviceClass> class optional_device : public device_finder<_DeviceClass, false> @@ -360,7 +360,7 @@ protected: public: required_device(device_t &base, const char *tag) : device_finder<_DeviceClass, true>(base, tag) { } }; - + // shared pointer finder template template<typename _PointerType, bool _Required> class shared_ptr_finder : public finder_base @@ -373,7 +373,7 @@ protected: m_bytes(0), m_allocated(false), m_width((width != 0) ? width : sizeof(_PointerType) * 8) { } - + virtual ~shared_ptr_finder() { if (m_allocated) global_free(m_target); } // operators to make use transparent @@ -393,7 +393,7 @@ protected: if (target == 0 && _Required) throw emu_fatalerror("Unable to find required shared pointer '%s'", this->m_tag); } - + // dynamic allocation of a shared pointer void allocate(UINT32 entries) { @@ -414,7 +414,7 @@ protected: bool m_allocated; UINT8 m_width; }; - + // optional device finder template<class _PointerType> class optional_shared_ptr : public shared_ptr_finder<_PointerType, false> |
