diff options
author | Vas Crabb <vas@vastheman.com> | 2021-09-07 23:15:50 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2021-09-07 23:15:50 +1000 |
commit | 142f96023889fc2c09a01318947f81cdb0e0f424 (patch) | |
tree | 39135ee898b7213937dbc779528f3550982b6a5a /src/mame/video | |
parent | d6873bfaccee1b1c5bb8e6ec9127c4ed860d8564 (diff) |
-Reworked device type definition macros a little and added more Doxygen.
* Reworked device type definition macros to eliminate one level of
indirection when using device types by name.
* Fixed a potential initialisation order issue that could affect device
parent ROMs.
* Eliminated the need for DEFINE_DEVICE_TYPE_NS - just use
DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_PRIVATE with fully-qualified
names.
* Changed device type aliases to static auto references in the headers.
* Added Doxygen comments for system/device definition macros and system
flags.
-Added ROM parents for m68705u3 and a2diskiing.
Diffstat (limited to 'src/mame/video')
-rw-r--r-- | src/mame/video/k053244_k053245.cpp | 1 | ||||
-rw-r--r-- | src/mame/video/k053244_k053245.h | 2 | ||||
-rw-r--r-- | src/mame/video/k053246_k053247_k055673.cpp | 1 | ||||
-rw-r--r-- | src/mame/video/k053246_k053247_k055673.h | 2 |
4 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/video/k053244_k053245.cpp b/src/mame/video/k053244_k053245.cpp index 0ca46f52847..fdd82c3344b 100644 --- a/src/mame/video/k053244_k053245.cpp +++ b/src/mame/video/k053244_k053245.cpp @@ -42,7 +42,6 @@ main ram and the buffer. *****************************************************************************/ DEFINE_DEVICE_TYPE(K053244, k05324x_device, "k05324x", "K053244/053245 Sprite Generator") -decltype(K053244) K053245 = K053244; const gfx_layout k05324x_device::spritelayout = { diff --git a/src/mame/video/k053244_k053245.h b/src/mame/video/k053244_k053245.h index 1f01fd71a8a..bc534d7a2df 100644 --- a/src/mame/video/k053244_k053245.h +++ b/src/mame/video/k053244_k053245.h @@ -64,6 +64,6 @@ private: DECLARE_DEVICE_TYPE(K053244, k05324x_device) -DECLARE_DEVICE_TYPE(K053245, k05324x_device) +static auto &K053245 = K053244; #endif // MAME_VIDEO_K053244_K053245_H diff --git a/src/mame/video/k053246_k053247_k055673.cpp b/src/mame/video/k053246_k053247_k055673.cpp index fcd27f1f065..a6f0d92748e 100644 --- a/src/mame/video/k053246_k053247_k055673.cpp +++ b/src/mame/video/k053246_k053247_k055673.cpp @@ -1045,7 +1045,6 @@ void k055673_device::device_start() DEFINE_DEVICE_TYPE(K053247, k053247_device, "k053247", "K053246/K053247 Sprite Generator") -decltype(K053247) K053246 = K053247; k053247_device::k053247_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : k053247_device(mconfig, K053247, tag, owner, clock) diff --git a/src/mame/video/k053246_k053247_k055673.h b/src/mame/video/k053246_k053247_k055673.h index 0be6f634af9..32b866335a8 100644 --- a/src/mame/video/k053246_k053247_k055673.h +++ b/src/mame/video/k053246_k053247_k055673.h @@ -449,7 +449,7 @@ protected: }; DECLARE_DEVICE_TYPE(K053247, k053247_device) -DECLARE_DEVICE_TYPE(K053246, k053247_device) +static auto &K053246 = K053247; class k055673_device : public k053247_device { |