summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-08-21 19:27:14 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-08-21 19:27:14 +0000
commit4d1fc8fafabfe36c87f04943e17123e79c45f803 (patch)
tree296db8ded68de542308dfe52997717f901da3b23 /src/emu/debug
parent0e09afc1a814682a1d9ea5eb70d8f6fc5a708f33 (diff)
Swap: (astring.len() != 0) -> astring
Swap: (astring.len() == 0) -> !astring
Diffstat (limited to 'src/emu/debug')
-rw-r--r--src/emu/debug/debugcmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index f0cea80fc53..e18466b51e3 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -998,14 +998,14 @@ static void execute_ignore(running_machine *machine, int ref, int params, const
/* build up a comma-separated list */
if (!exec->device().debug()->observing())
{
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Currently ignoring device '%s'", exec->device().tag());
else
buffer.catprintf(", '%s'", exec->device().tag());
}
/* special message for none */
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Not currently ignoring any devices");
debug_console_printf(machine, "%s\n", buffer.cstr());
}
@@ -1060,14 +1060,14 @@ static void execute_observe(running_machine *machine, int ref, int params, const
/* build up a comma-separated list */
if (exec->device().debug()->observing())
{
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Currently observing CPU '%s'", exec->device().tag());
else
buffer.catprintf(", '%s'", exec->device().tag());
}
/* special message for none */
- if (buffer.len() == 0)
+ if (!buffer)
buffer.printf("Not currently observing any devices");
debug_console_printf(machine, "%s\n", buffer.cstr());
}