Previous 199869 Revisions Next

r18621 Saturday 20th October, 2012 at 09:54:45 UTC by O. Galibert
addrmap: Avoid a collision between address_map the type and the method of the device_memory_interface class [O. Galibert]
[src/emu]addrmap.h

trunk/src/emu/addrmap.h
r18620r18621
390390   typedef _class drivdata_class; \
391391
392392#define DEVICE_ADDRESS_MAP_START(_name, _bits, _class) \
393void _class :: _name(address_map &map, device_t &device) \
393void _class :: _name(::address_map &map, device_t &device) \
394394{ \
395395   typedef read##_bits##_delegate read_delegate; \
396396   typedef write##_bits##_delegate write_delegate; \
r18620r18621
407407   extern void ADDRESS_MAP_NAME(_name)(address_map &map, device_t &device)
408408
409409// use this to declare an address map as a member of a modern device class
410// need to qualify with :: to avoid a collision with descendants of device_memory_interface
410411#define DECLARE_ADDRESS_MAP(_name, _bits) \
411   void _name(address_map &map, device_t &device)
412   void _name(::address_map &map, device_t &device)
412413
413414
414415// global controls

Previous 199869 Revisions Next


© 1997-2024 The MAME Team