diff options
Diffstat (limited to 'src/devices/bus/bw2/exp.h')
-rw-r--r-- | src/devices/bus/bw2/exp.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/devices/bus/bw2/exp.h b/src/devices/bus/bw2/exp.h index 5bd353c5d35..70c8bf55f50 100644 --- a/src/devices/bus/bw2/exp.h +++ b/src/devices/bus/bw2/exp.h @@ -49,17 +49,6 @@ #define BW2_EXPANSION_SLOT_TAG "exp" - -//************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_BW2_EXPANSION_SLOT_ADD(_tag, _clock, _slot_intf, _def_slot) \ - MCFG_DEVICE_ADD(_tag, BW2_EXPANSION_SLOT, _clock) \ - MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false) - - - //************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -73,6 +62,16 @@ class bw2_expansion_slot_device : public device_t, { public: // construction/destruction + template <typename T> + bw2_expansion_slot_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock, T &&opts, char const *dflt) + : bw2_expansion_slot_device(mconfig, tag, owner, clock) + { + option_reset(); + opts(*this); + set_default_option(dflt); + set_fixed(false); + } + bw2_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); virtual ~bw2_expansion_slot_device(); |