summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/cbm2/exp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/cbm2/exp.h')
-rw-r--r--src/devices/bus/cbm2/exp.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/bus/cbm2/exp.h b/src/devices/bus/cbm2/exp.h
index 061834b1504..0b6ca30a087 100644
--- a/src/devices/bus/cbm2/exp.h
+++ b/src/devices/bus/cbm2/exp.h
@@ -24,10 +24,10 @@
**********************************************************************/
-#pragma once
+#ifndef MAME_BUS_CBM2_EXP_H
+#define MAME_BUS_CBM2_EXP_H
-#ifndef __CBM2_EXPANSION_SLOT__
-#define __CBM2_EXPANSION_SLOT__
+#pragma once
#include "softlist_dev.h"
@@ -108,13 +108,14 @@ class device_cbm2_expansion_card_interface : public device_slot_card_interface
public:
// construction/destruction
- device_cbm2_expansion_card_interface(const machine_config &mconfig, device_t &device);
virtual ~device_cbm2_expansion_card_interface();
virtual uint8_t cbm2_bd_r(address_space &space, offs_t offset, uint8_t data, int csbank1, int csbank2, int csbank3) { return data; };
virtual void cbm2_bd_w(address_space &space, offs_t offset, uint8_t data, int csbank1, int csbank2, int csbank3) { };
protected:
+ device_cbm2_expansion_card_interface(const machine_config &mconfig, device_t &device);
+
optional_shared_ptr<uint8_t> m_bank1;
optional_shared_ptr<uint8_t> m_bank2;
optional_shared_ptr<uint8_t> m_bank3;
@@ -124,11 +125,10 @@ protected:
// device type definition
-extern const device_type CBM2_EXPANSION_SLOT;
+DECLARE_DEVICE_TYPE(CBM2_EXPANSION_SLOT, cbm2_expansion_slot_device)
SLOT_INTERFACE_EXTERN( cbm2_expansion_cards );
-
-#endif
+#endif // MAME_BUS_CBM2_EXP_H