Previous 199869 Revisions Next

r15883 Thursday 5th April, 2012 at 19:19:38 UTC by Aaron Giles
Add logic to ensure that shared pointers are checked to be of the
right width. The primary upshot is that if you declare AM_SHARE("paletteram")
in an 8-bit memory map, then only m_generic_paletteram_8 will be populated,
and m_generic_paletteram_16 will be NULL. But it applies to all
required_/optional_shared_ptrs declared, so make sure they are of the
right type.

The required_/optional_shared_ptr mechanism should be used to replace
AM_BASE_MEMBER and AM_SIZE_MEMBER, which are technically dangerous and
illegal in C++ but work today through some trickery.
[src/emu]device.c device.h

Previous 199869 Revisions Next


© 1997-2024 The MAME Team