X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fcommon.h;h=3b15b28416039ed09b6cd3795f8c9842763a678f;hb=498e7994d60bd0e9f63c3d5c0fd00eec77ba7c34;hp=ab19d098b37a693e3dbb318afe2cf1d09474b043;hpb=98b15851a941e7342b8bb19e265cdc3a40fabfb8;p=babeltrace.git diff --git a/src/common/common.h b/src/common/common.h index ab19d098..3b15b284 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -361,6 +361,9 @@ int bt_common_get_term_size(unsigned int *width, unsigned int *height); BT_HIDDEN int bt_common_append_file_content_to_g_string(GString *str, FILE *fp); +BT_HIDDEN +void bt_common_abort(void) __attribute__((noreturn)); + /* * Wraps read() function to handle EINTR and partial reads. * On success, it returns `count` received as parameter. On error, it returns a @@ -589,7 +592,7 @@ GString *bt_common_field_path_string(struct bt_field_path *path) g_string_append(str, ", "); break; default: - abort(); + bt_common_abort(); } }