summaryrefslogtreecommitdiff
path: root/kicad/delta.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 14:46:04 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 14:46:04 -0300
commitf5fa04cbf3ac9011f4f144cd68543f8d9536e3fd (patch)
treeac9160ef7ef5963e296144fb75845db56ba62e7c /kicad/delta.c
parent061dd9094a903be73e3aa7a65aafb8bcb70010b7 (diff)
downloadeeshow-f5fa04cbf3ac9011f4f144cd68543f8d9536e3fd.tar.gz
eeshow-f5fa04cbf3ac9011f4f144cd68543f8d9536e3fd.tar.bz2
eeshow-f5fa04cbf3ac9011f4f144cd68543f8d9536e3fd.zip
misc/diag.h (BUG): more useful diagnostics; replace all "abort" with it
Diffstat (limited to 'kicad/delta.c')
-rw-r--r--kicad/delta.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kicad/delta.c b/kicad/delta.c
index d07915d..9eb05bb 100644
--- a/kicad/delta.c
+++ b/kicad/delta.c
@@ -17,6 +17,7 @@
#include <string.h>
#include "misc/util.h"
+#include "misc/diag.h"
#include "gfx/text.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
@@ -98,7 +99,7 @@ static bool comp_eq_obj(const struct lib_obj *a, const struct lib_obj *b)
!strcmp(a->u.pin.name, b->u.pin.name) &&
!strcmp(a->u.pin.number, b->u.pin.number);
default:
- abort();
+ BUG("invalid type %d", a->type);
}
}
@@ -320,7 +321,7 @@ static bool obj_eq(const struct sch_obj *a, const struct sch_obj *b,
return 0;
return sheet_eq(a->u.sheet.sheet, b->u.sheet.sheet);
default:
- abort();
+ BUG("invalid type %d", a->type);
}
}