fix a bad use of MUST_ABORT

This commit is contained in:
tTh 2023-03-30 05:04:17 +02:00
parent 26f6421653
commit 3d93b66b00
1 changed files with 6 additions and 6 deletions

View File

@ -84,7 +84,7 @@ fprintf(stderr, ">>> %s ( %p %d )\n", __func__, bbl, k);
if (NULL == bbl->bbs) {
fprintf(stderr, "%s : array ptr is null\n", __func__);
#ifdef MUST_ABORT
#if MUST_ABORT
abort();
#endif
return 1;
@ -108,7 +108,7 @@ fprintf(stderr, ">>> %s ( %p %d )\n", __func__, where, idx);
if ( (idx < 0) || (idx > where->fidx) ) {
fprintf(stderr, "%s : idx %d out of range on %p\n",
__func__, idx, where);
#ifdef MUST_ABORT
#if MUST_ABORT
abort();
#endif
return NULL;
@ -186,7 +186,7 @@ int peek_bubulle(BBList *from, Bubulle *to, int idx)
if (NULL==from) {
fprintf(stderr, "in %s, *from is null\n", __func__);
#ifdef MUST_ABORT
#if MUST_ABORT
abort();
#endif
return -5;
@ -216,7 +216,7 @@ Bubulle *ar;
if (NULL == bbl) {
fprintf(stderr, "in %s, *bbl is NULL\n", __func__);
#ifdef MUST_ABORT
#if MUST_ABORT
abort();
#endif
return -5;
@ -261,7 +261,7 @@ int idx;
if (NULL == what) {
fprintf(stderr, "SHIT HAPPEN IN %s\n", __func__);
#ifdef MUST_ABORT
#if MUST_ABORT
abort();
#endif
return -5;
@ -337,7 +337,7 @@ int print_bbox(BBox *bbox, int k)
if (NULL==bbox) {
fprintf(stderr, "in %s, *bbox is NULL\n", __func__);
#ifdef MUST_ABORT
#if MUST_ABORT
abort();
#endif
return -5;