Replace all assert(false) and assert(0) with abort()
[babeltrace.git] / lib / ctf-ir / trace.c
index 890e12c4d1ad67c01a2fd64cc164d4e4ee938396..bcba9b1dca28cda36e2fd5e2811f8e5afa695c04 100644 (file)
@@ -52,6 +52,7 @@
 #include <inttypes.h>
 #include <stdint.h>
 #include <string.h>
+#include <stdlib.h>
 
 #define DEFAULT_IDENTIFIER_SIZE 128
 #define DEFAULT_METADATA_STRING_SIZE 4096
@@ -1630,7 +1631,7 @@ const char *get_byte_order_string(enum bt_ctf_byte_order byte_order)
                string = "native";
                break;
        default:
-               assert(BT_FALSE);
+               abort();
        }
 
        return string;
This page took 0.023358 seconds and 4 git commands to generate.