summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/apexc.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2017-02-27 22:16:07 +1100
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2017-02-27 22:57:14 +1100
commit6c23897483a0201dd0b65b450253fd9bf8fb8723 (patch) (github)
tree62a083b4801f63b09bed57ae0c9e8f646aaa3200 /src/mame/drivers/apexc.cpp
parentb07c572f709e95dcd1e2e4b9d4c696e122f67655 (diff)
downloadmame-6c23897483a0201dd0b65b450253fd9bf8fb8723.tar.bz2
mame-6c23897483a0201dd0b65b450253fd9bf8fb8723.zip
Self-registering devices prep:
* Make device_creator a variable template and get rid of the ampersands * Remove screen.h and speaker.h from emu.h and add where necessary * Centralise instantiations of screen and speaker finder templates * Add/standardise #include guards in many hearers * Remove many redundant #includes * Order #includesr to help catch headers that can't be #included alone (nw) This changes #include order to be prefix, unit header if applicable then other stuff roughly in order from most dependent to least dependent library. This helps catch headers that don't #include things that they use.
Diffstat (limited to 'src/mame/drivers/apexc.cpp')
-rw-r--r--src/mame/drivers/apexc.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index 4e2337ad84d..434ff5f9c14 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -10,6 +10,7 @@
#include "emu.h"
#include "cpu/apexc/apexc.h"
+#include "screen.h"
class apexc_state : public driver_device
@@ -96,7 +97,7 @@ private:
int m_writable;
};
-const device_type APEXC_CYLINDER = &device_creator<apexc_cylinder_image_device>;
+const device_type APEXC_CYLINDER = device_creator<apexc_cylinder_image_device>;
apexc_cylinder_image_device::apexc_cylinder_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, APEXC_CYLINDER, "APEXC Cylinder", tag, owner, clock, "apexc_cylinder_image", __FILE__),
@@ -218,7 +219,7 @@ protected:
virtual void device_start() override { }
};
-const device_type APEXC_TAPE_PUNCHER = &device_creator<apexc_tape_puncher_image_device>;
+const device_type APEXC_TAPE_PUNCHER = device_creator<apexc_tape_puncher_image_device>;
apexc_tape_puncher_image_device::apexc_tape_puncher_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, APEXC_TAPE_PUNCHER, "APEXC Tape Puncher", tag, owner, clock, "apexc_tape_puncher_image", __FILE__),
@@ -250,7 +251,7 @@ protected:
virtual void device_start() override { }
};
-const device_type APEXC_TAPE_READER = &device_creator<apexc_tape_reader_image_device>;
+const device_type APEXC_TAPE_READER = device_creator<apexc_tape_reader_image_device>;
apexc_tape_reader_image_device::apexc_tape_reader_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, APEXC_TAPE_READER, "APEXC Tape Reader", tag, owner, clock, "apexc_tape_reader_image", __FILE__),