diff options
Diffstat (limited to 'opcodes/mmix-dis.c')
-rw-r--r-- | opcodes/mmix-dis.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/opcodes/mmix-dis.c b/opcodes/mmix-dis.c index bf14b77..89a4cd9 100644 --- a/opcodes/mmix-dis.c +++ b/opcodes/mmix-dis.c @@ -27,24 +27,23 @@ #include "bfd.h" #include "opintl.h" -#define BAD_CASE(x) \ - do \ - { \ - fprintf (stderr, \ - _("Bad case %d (%s) in %s:%d\n"), \ - x, #x, __FILE__, __LINE__); \ - abort (); \ - } \ +#define BAD_CASE(x) \ + do \ + { \ + opcodes_error_handler (_("bad case %d (%s) in %s:%d"), \ + x, #x, __FILE__, __LINE__); \ + abort (); \ + } \ while (0) -#define FATAL_DEBUG \ - do \ - { \ - fprintf (stderr, \ - _("Internal: Non-debugged code (test-case missing): %s:%d"),\ - __FILE__, __LINE__); \ - abort (); \ - } \ +#define FATAL_DEBUG \ + do \ + { \ + opcodes_error_handler (_("internal: non-debugged code " \ + "(test-case missing): %s:%d"), \ + __FILE__, __LINE__); \ + abort (); \ + } \ while (0) #define ROUND_MODE(n) \ |