void running_machine::stop_all_devices() { // first let the debugger save comments if ((debug_flags & DEBUG_FLAG_ENABLED) != 0) debug_comment_save(*this); // iterate over devices and stop them device_iterator iter(root_device()); for (device_t *device = iter.first(); device != NULL; device = iter.next()) device->stop(); }
static void debug_comment_exit(void) { debug_comment_save(); debug_comment_free(); }