summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-10-15 19:20:29 -0400
committer Nathan Woods <npwoods@mess.org>2016-10-15 19:20:29 -0400
commit57e3c29dd2d9fba7d5fca98c3c91ba8c2de9412d (patch)
tree46edb119462c96e665773f69d6a011fae41ffb2a /src/emu
parent4d75e88ddd61b46cd745ba9d92b9ab5ba16cde12 (diff)
[COCO] Changed to use required_ioport_array and optional_ioport
Also, I added a size() accessor to object_array_finder. If there is a better way to do this, let me know.
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/devfind.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/devfind.h b/src/emu/devfind.h
index d069d14033f..c058f2690b2 100644
--- a/src/emu/devfind.h
+++ b/src/emu/devfind.h
@@ -115,6 +115,9 @@ public:
/// \param [in] index Index of desired element (zero-based).
/// \return Reference to element at specified index.
T &operator[](unsigned index) { assert(index < Count); return m_array[index]; }
+
+ /// \brief Returns the count
+ unsigned size() const { return Count; }
};