X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fnotification-internal.h;h=c37d2f10b4c0a65beee806e43644038c8caeef05;hb=f6ccaed94e575af57fe6bf38154771bee4871a2a;hp=631d0adf7bbfe4c53c51afcb6c25415d126bfda9;hpb=50842bdc4c21f3de2b63e29cdac730af8b6dcca6;p=babeltrace.git diff --git a/include/babeltrace/graph/notification-internal.h b/include/babeltrace/graph/notification-internal.h index 631d0adf..c37d2f10 100644 --- a/include/babeltrace/graph/notification-internal.h +++ b/include/babeltrace/graph/notification-internal.h @@ -44,6 +44,12 @@ struct bt_notification { bt_bool frozen; }; +#define BT_ASSERT_PRE_NOTIF_IS_TYPE(_notif, _type) \ + BT_ASSERT_PRE((_notif)->type == (_type), \ + "Notification has the wrong type: expected-type=%s, " \ + "%![notif-]+n", bt_notification_type_string(_type), \ + (_notif)) + BT_HIDDEN void bt_notification_init(struct bt_notification *notification, enum bt_notification_type type,