#include <babeltrace2/babeltrace.h>
#include "interrupter.h"
-#include "lib/assert-pre.h"
+#include "lib/assert-cond.h"
static
void destroy_interrupter(struct bt_object *obj)
void bt_interrupter_set(struct bt_interrupter *intr)
{
- BT_ASSERT_PRE_NON_NULL(intr, "Interrupter");
+ BT_ASSERT_PRE_INTR_NON_NULL(intr);
intr->is_set = true;
}
void bt_interrupter_reset(struct bt_interrupter *intr)
{
- BT_ASSERT_PRE_NON_NULL(intr, "Interrupter");
+ BT_ASSERT_PRE_INTR_NON_NULL(intr);
intr->is_set = false;
}
bt_bool bt_interrupter_is_set(const struct bt_interrupter *intr)
{
- BT_ASSERT_PRE_NON_NULL(intr, "Interrupter");
+ BT_ASSERT_PRE_INTR_NON_NULL(intr);
return (bt_bool) intr->is_set;
}