summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcon.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2017-03-03 10:34:58 -0500
committer Nathan Woods <npwoods@mess.org>2017-03-03 10:36:30 -0500
commit60b8e27e2c4f0fcb45e33a3afe9333c12395eaec (patch)
tree27212b2c22d7fefe892c36ad7e7d53eb26b7f355 /src/emu/debug/debugcon.cpp
parent0a4f6418df8269927475c591363eb5de9a8568a1 (diff)
C++-ification of debugger code (misc std::string/std::vector adoption mainly)
Diffstat (limited to 'src/emu/debug/debugcon.cpp')
-rw-r--r--src/emu/debug/debugcon.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emu/debug/debugcon.cpp b/src/emu/debug/debugcon.cpp
index 8cd565cbfa1..1a35ba3f61d 100644
--- a/src/emu/debug/debugcon.cpp
+++ b/src/emu/debug/debugcon.cpp
@@ -218,7 +218,10 @@ CMDERR debugger_console::internal_execute_command(bool execute, int params, char
/* execute the handler */
if (execute)
- found->handler(found->ref, params, (const char **)param);
+ {
+ std::vector<std::string> params_vec(param, param + params);
+ found->handler(found->ref, params_vec);
+ }
return CMDERR_NONE;
}
@@ -368,7 +371,7 @@ CMDERR debugger_console::validate_command(const char *command)
register_command - register a command handler
-------------------------------------------------*/
-void debugger_console::register_command(const char *command, u32 flags, int ref, int minparams, int maxparams, std::function<void(int, int, const char **)> handler)
+void debugger_console::register_command(const char *command, u32 flags, int ref, int minparams, int maxparams, std::function<void(int, const std::vector<std::string> &)> handler)
{
assert_always(m_machine.phase() == MACHINE_PHASE_INIT, "Can only call register_command() at init time!");
assert_always((m_machine.debug_flags & DEBUG_FLAG_ENABLED) != 0, "Cannot call register_command() when debugger is not running");