From 6bcde460c634db3f9c8799320a3b581c8b135056 Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 11 Feb 2022 23:39:12 -0500 Subject: machine.cpp: Attempt to appease gcc's stricter handling of incomplete types --- src/emu/machine.cpp | 11 +++++++++++ src/emu/machine.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp index 1d8fe872fd1..5baa3f67594 100644 --- a/src/emu/machine.cpp +++ b/src/emu/machine.cpp @@ -973,6 +973,17 @@ void running_machine::logfile_callback(const char *buffer) } +//------------------------------------------------- +// steal_debuglogfile - relinquish ownership of +// the debug.log file +//------------------------------------------------- + +std::unique_ptr running_machine::steal_debuglogfile() +{ + return std::move(m_debuglogfile); +} + + //------------------------------------------------- // start_all_devices - start any unstarted devices //------------------------------------------------- diff --git a/src/emu/machine.h b/src/emu/machine.h index 4870c232e3a..4bef86ce3a7 100644 --- a/src/emu/machine.h +++ b/src/emu/machine.h @@ -217,7 +217,7 @@ public: bool debug_enabled() { return (debug_flags & DEBUG_FLAG_ENABLED) != 0; } // used by debug_console to take ownership of the debug.log file - std::unique_ptr steal_debuglogfile() { return std::move(m_debuglogfile); } + std::unique_ptr steal_debuglogfile(); private: class side_effects_disabler { -- cgit v1.2.3