Previous 15994 Revisions Next

r15664 Tuesday 24th July, 2012 at 16:08:02 UTC by Firewave
removed some unused variable declarations from MACHINE_CONFIG_* macros
[src/emu]mconfig.h

src/emu/mconfig.h
r15663r15664
176176ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \
177177{ \
178178   device_t *device = NULL; \
179   const char *tag; \
180   astring tempstring; \
181179   (void)device; \
182   (void)tag; \
183180   if (owner == NULL) owner = config.device_add(NULL, "root", &driver_device_creator<_class>, 0); \
184181
185182#define MACHINE_CONFIG_FRAGMENT(_name) \
186183ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \
187184{ \
188185   device_t *device = NULL; \
189   const char *tag; \
190   astring tempstring; \
191186   (void)device; \
192   (void)tag; \
193187   assert(owner != NULL); \
194188
195189#define MACHINE_CONFIG_DERIVED(_name, _base) \
196190ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \
197191{ \
198192   device_t *device = NULL; \
199   const char *tag; \
200   astring tempstring; \
201193   (void)device; \
202   (void)tag; \
203194   owner = MACHINE_CONFIG_NAME(_base)(config, owner); \
204195   assert(owner != NULL); \
205196
r15663r15664
207198ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \
208199{ \
209200   device_t *device = NULL; \
210   const char *tag; \
211   astring tempstring; \
212201   (void)device; \
213   (void)tag; \
214202   if (owner == NULL) owner = config.device_add(NULL, "root", &driver_device_creator<_class>, 0); \
215203   owner = MACHINE_CONFIG_NAME(_base)(config, owner); \
216204

Previous 15994 Revisions Next


© 1998-2018 The MESS Team