diff options
author | 2014-09-24 05:17:48 +0000 | |
---|---|---|
committer | 2014-09-24 05:17:48 +0000 | |
commit | 3a15dad69a0f4dc2b74ddffe4aad4360dcb308ac (patch) | |
tree | d61a09365d052ffd9c8c723870e14cb0a42a9117 /src/emu/devfind.h | |
parent | 12d3afe3a3dba948a2c2344e99b41a73f5bde0a2 (diff) |
Add friendly macros to initialize an ioport_array_finder with an array of port names. Update namcona1.c, segaorun.c and segaybd.c to use them. Remove runtime ioport tag lookups from a few other drivers (nw)
Diffstat (limited to 'src/emu/devfind.h')
-rw-r--r-- | src/emu/devfind.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/devfind.h b/src/emu/devfind.h index bbd7532a347..942de1f22d7 100644 --- a/src/emu/devfind.h +++ b/src/emu/devfind.h @@ -20,6 +20,16 @@ #define FINDER_DUMMY_TAG "finder_dummy_tag" //************************************************************************** +// IOPORT ARRAY MACROS +//************************************************************************** + +// these macros can be used to initialize an ioport_array with +// individual port names, instead of a base name + numeric suffix + +#define IOPORT_ARRAY_MEMBER(name) const char * const name[] = +#define DECLARE_IOPORT_ARRAY(name) static const char * const name[] + +//************************************************************************** // TYPE DEFINITIONS //************************************************************************** |