src/emu/mconfig.h
| r15663 | r15664 | |
| 176 | 176 | ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \ |
| 177 | 177 | { \ |
| 178 | 178 | device_t *device = NULL; \ |
| 179 | | const char *tag; \ |
| 180 | | astring tempstring; \ |
| 181 | 179 | (void)device; \ |
| 182 | | (void)tag; \ |
| 183 | 180 | if (owner == NULL) owner = config.device_add(NULL, "root", &driver_device_creator<_class>, 0); \ |
| 184 | 181 | |
| 185 | 182 | #define MACHINE_CONFIG_FRAGMENT(_name) \ |
| 186 | 183 | ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \ |
| 187 | 184 | { \ |
| 188 | 185 | device_t *device = NULL; \ |
| 189 | | const char *tag; \ |
| 190 | | astring tempstring; \ |
| 191 | 186 | (void)device; \ |
| 192 | | (void)tag; \ |
| 193 | 187 | assert(owner != NULL); \ |
| 194 | 188 | |
| 195 | 189 | #define MACHINE_CONFIG_DERIVED(_name, _base) \ |
| 196 | 190 | ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \ |
| 197 | 191 | { \ |
| 198 | 192 | device_t *device = NULL; \ |
| 199 | | const char *tag; \ |
| 200 | | astring tempstring; \ |
| 201 | 193 | (void)device; \ |
| 202 | | (void)tag; \ |
| 203 | 194 | owner = MACHINE_CONFIG_NAME(_base)(config, owner); \ |
| 204 | 195 | assert(owner != NULL); \ |
| 205 | 196 | |
| r15663 | r15664 | |
| 207 | 198 | ATTR_COLD device_t *MACHINE_CONFIG_NAME(_name)(machine_config &config, device_t *owner) \ |
| 208 | 199 | { \ |
| 209 | 200 | device_t *device = NULL; \ |
| 210 | | const char *tag; \ |
| 211 | | astring tempstring; \ |
| 212 | 201 | (void)device; \ |
| 213 | | (void)tag; \ |
| 214 | 202 | if (owner == NULL) owner = config.device_add(NULL, "root", &driver_device_creator<_class>, 0); \ |
| 215 | 203 | owner = MACHINE_CONFIG_NAME(_base)(config, owner); \ |
| 216 | 204 | |