diff options
| author | 2018-01-21 23:42:41 +0100 | |
|---|---|---|
| committer | 2018-01-23 10:25:25 +0100 | |
| commit | 03ba80e0ef3e021f6ff89ef91ae5cdce4e24b994 (patch) | |
| tree | f127b7f533d36df2484f82fcb05cef5f4c04f232 /src/emu/mconfig.cpp | |
| parent | f61a64ea29bf46bf2deb2e1fbace5b24f3d7b0aa (diff) | |
xtal.h is dead, long live to xtal.cpp [O. Galibert]
Diffstat (limited to 'src/emu/mconfig.cpp')
| -rw-r--r-- | src/emu/mconfig.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emu/mconfig.cpp b/src/emu/mconfig.cpp index 78a89feefab..fe9040c3b75 100644 --- a/src/emu/mconfig.cpp +++ b/src/emu/mconfig.cpp @@ -159,6 +159,13 @@ device_t *machine_config::device_add(device_t *owner, const char *tag, device_ty } } +device_t *machine_config::device_add(device_t *owner, const char *tag, device_type type, const XTAL &clock) +{ + std::string msg = std::string("Instantiating device ") + tag; + clock.check(msg); + return device_add(owner, tag, type, clock.value()); +} + //------------------------------------------------- // device_replace - configuration helper to @@ -192,6 +199,14 @@ device_t *machine_config::device_replace(device_t *owner, const char *tag, devic } +device_t *machine_config::device_replace(device_t *owner, const char *tag, device_type type, const XTAL &clock) +{ + std::string msg = std::string("Replacing device ") + tag; + clock.check(msg); + return device_replace(owner, tag, type, clock.value()); +} + + //------------------------------------------------- // device_remove - configuration helper to // remove a device |
