diff --git a/bubulles.c b/bubulles.c index 29cb3bc..f11ac5e 100644 --- a/bubulles.c +++ b/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;