Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / plugins / ctf / common / metadata / ctf-meta.h
index 929a39e14c01dfceaf9eddacea643977f5ca63aa..3a5fec2dd8c74930ffa8ddc64af6992fecbe3378 100644 (file)
@@ -20,6 +20,7 @@
 #include "common/uuid.h"
 #include "common/assert.h"
 #include <glib.h>
+#include <stdbool.h>
 #include <stdint.h>
 #include <string.h>
 
@@ -683,7 +684,7 @@ void ctf_field_class_destroy(struct ctf_field_class *fc)
                _ctf_field_class_variant_destroy((void *) fc);
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 }
 
@@ -1055,7 +1056,7 @@ uint64_t ctf_field_class_compound_get_field_class_count(struct ctf_field_class *
                field_count = 1;
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        return field_count;
@@ -1151,7 +1152,7 @@ const char *ctf_scope_string(enum ctf_scope scope)
        case CTF_SCOPE_EVENT_PAYLOAD:
                return "EVENT_PAYLOAD";
        default:
-               abort();
+               bt_common_abort();
        }
 }
 
@@ -1210,7 +1211,7 @@ struct ctf_field_class *ctf_field_path_borrow_field_class(
                fc = ec->payload_fc;
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        BT_ASSERT_DBG(fc);
@@ -1473,7 +1474,7 @@ struct ctf_field_class *ctf_field_class_copy(struct ctf_field_class *fc)
                copy_fc = (void *) _ctf_field_class_variant_copy((void *) fc);
                break;
        default:
-               abort();
+               bt_common_abort();
        }
 
        copy_fc->type = fc->type;
This page took 0.029446 seconds and 4 git commands to generate.