summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-02-11 23:39:12 -0500
committer AJR <ajrhacker@users.noreply.github.com>2022-02-11 23:39:12 -0500
commit6bcde460c634db3f9c8799320a3b581c8b135056 (patch)
tree9110f0186e900076cf5b0713456d12d946cd0458
parentba77706c5cea808d5e532550b7bafd78e8bf6d09 (diff)
machine.cpp: Attempt to appease gcc's stricter handling of incomplete types
-rw-r--r--src/emu/machine.cpp11
-rw-r--r--src/emu/machine.h2
2 files changed, 12 insertions, 1 deletions
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
@@ -974,6 +974,17 @@ void running_machine::logfile_callback(const char *buffer)
//-------------------------------------------------
+// steal_debuglogfile - relinquish ownership of
+// the debug.log file
+//-------------------------------------------------
+
+std::unique_ptr<emu_file> 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<emu_file> steal_debuglogfile() { return std::move(m_debuglogfile); }
+ std::unique_ptr<emu_file> steal_debuglogfile();
private:
class side_effects_disabler {