diff options
author | 2020-10-12 19:06:54 +1100 | |
---|---|---|
committer | 2020-10-12 19:06:54 +1100 | |
commit | d6f7c7febffd2b5014d2d65ab607262be773c0e6 (patch) | |
tree | e4153c36940e9bd9251c1025c0e12dfd802e4ad1 /src/emu/debug/debugcmd.cpp | |
parent | 0b32e41c01620ecb69d2e1e647592fbb475f3457 (diff) |
emu/debug: Removed more macros, added more const, make a couple more things use smart pointers.
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index a620d5555d3..acc25e9ab8f 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -650,12 +650,12 @@ bool debugger_commands::debug_command_parameter_command(const char *param) /* validate the comment; success if no error */ CMDERR err = m_console.validate_command(param); - if (err == CMDERR_NONE) + if (err.ERROR_CLASS() == CMDERR::NONE) return true; /* output an error */ m_console.printf("Error in command: %s\n", param); - m_console.printf(" %*s^", CMDERR_ERROR_OFFSET(err), ""); + m_console.printf(" %*s^", err.ERROR_OFFSET(), ""); m_console.printf("%s\n", debugger_console::cmderr_to_string(err)); return 0; } |