fix a bad use of MUST_ABORT
This commit is contained in:
parent
26f6421653
commit
3d93b66b00
12
bubulles.c
12
bubulles.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user