summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-05 07:26:46 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-05 07:26:46 +1100
commitc2c3d685f0229e31be4348d18c8b4fd22d890417 (patch)
tree3c96cdb42514f4563002aabe202e6ebba5a63e3c /src/lib
parent973952141c15958e71b11e8c6e77a8d220b8f3d7 (diff)
More low-effort cleanup.
* Got more slot card classes out of headers. * Changed most of the Apple II cards still looking up ROM regions manually to use required_region_ptr. * Removed an unreferenced function leftover from copy-pasting another device from the Videx Uniprint device.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/delegate.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/util/delegate.cpp b/src/lib/util/delegate.cpp
index 880df3bc505..8949f90f146 100644
--- a/src/lib/util/delegate.cpp
+++ b/src/lib/util/delegate.cpp
@@ -24,20 +24,6 @@
#define LOG(...) do { if (false) printf(__VA_ARGS__); } while (false)
#endif
-// on some architectures, function pointers point to descriptors
-// usually this is a global pointer value along with the branch target
-// other platforms using this convention include:
-// * AIX, Classic MacOS and WinNT on 32-bit POWER/PowerPC
-// * pretty much anything on Itanium
-// separately, on some architectures, function descriptors are stored in
-// vtables directly
-#if defined(__ia64__)
- #define MAME_DELEGATE_VT_DESCRIPTOR 1
-#endif
-#ifndef MAME_DELEGATE_VT_DESCRIPTOR
- #define MAME_DELEGATE_VT_DESCRIPTOR 0
-#endif
-
//**************************************************************************
@@ -102,7 +88,7 @@ delegate_generic_function delegate_mfp_itanium::convert_to_generic(delegate_gene
// byte index into the vtable to the function
std::uint8_t const *const vtable_ptr = *reinterpret_cast<std::uint8_t const *const *>(object) + m_function - ((MAME_ABI_CXX_ITANIUM_MFP_TYPE == MAME_ABI_CXX_ITANIUM_MFP_ARM) ? 0 : 1);
delegate_generic_function result;
- if (MAME_DELEGATE_VT_DESCRIPTOR)
+ if (MAME_ABI_CXX_VTABLE_FNDESC)
result = reinterpret_cast<delegate_generic_function>(uintptr_t(vtable_ptr));
else
result = *reinterpret_cast<delegate_generic_function const *>(vtable_ptr);