diff options
author | 2015-04-19 12:08:52 +0200 | |
---|---|---|
committer | 2015-04-19 12:08:52 +0200 | |
commit | 71c4d9f30460914a6823880e88e446799ecfe30f (patch) | |
tree | 4718c76a34a5aa2c160c381ab13cf1fa5cca99d7 /src/emu/debug/debugcpu.c | |
parent | 337342a4c650f38d286a3347b670fbc7ee2c343f (diff) |
removed bool conversion and implicit empty check (nw)
Diffstat (limited to 'src/emu/debug/debugcpu.c')
-rw-r--r-- | src/emu/debug/debugcpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index 29a4d759552..02b939716cb 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -2908,7 +2908,7 @@ void device_debug::breakpoint_check(offs_t pc) global->execution_state = EXECUTION_STATE_STOPPED; // if we hit, evaluate the action - if (bp->m_action) + if (!bp->m_action.empty()) debug_console_execute_command(m_device.machine(), bp->m_action.c_str(), 0); // print a notification, unless the action made us go again @@ -2927,7 +2927,7 @@ void device_debug::breakpoint_check(offs_t pc) global->execution_state = EXECUTION_STATE_STOPPED; // if we hit, evaluate the action - if (rp->m_action) + if (!rp->m_action.empty()) { debug_console_execute_command(m_device.machine(), rp->m_action.c_str(), 0); } @@ -3037,7 +3037,7 @@ void device_debug::watchpoint_check(address_space &space, int type, offs_t addre global->execution_state = EXECUTION_STATE_STOPPED; // if we hit, evaluate the action - if (wp->m_action) + if (!wp->m_action.empty()) debug_console_execute_command(space.machine(), wp->m_action.c_str(), 0); // print a notification, unless the action made us go again @@ -3480,7 +3480,7 @@ void device_debug::tracer::update(offs_t pc) m_loops = 0; // execute any trace actions first - if (m_action) + if (!m_action.empty()) debug_console_execute_command(m_debug.m_device.machine(), m_action.c_str(), 0); // print the address |