Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / lib / trace-ir / field.c
index 8177c17107ad63c4e9af704efee6daf9aa542bf6..8db595ec87fffa60d3c42bfc197f02fc7f8cf5b5 100644 (file)
@@ -33,6 +33,7 @@
 #include "common/align.h"
 #include "common/assert.h"
 #include <inttypes.h>
+#include <stdbool.h>
 
 #include "field.h"
 #include "field-class.h"
@@ -271,7 +272,7 @@ struct bt_field *bt_field_create(struct bt_field_class *fc)
                field = create_variant_field(fc);
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        if (!field) {
@@ -1364,7 +1365,7 @@ void bt_field_destroy(struct bt_field *field)
                destroy_variant_field(field);
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 }
 
This page took 0.023599 seconds and 4 git commands to generate.