lib: add pre condition asserts to check current thread has no error
[babeltrace.git] / src / lib / graph / interrupter.c
index 2a066ddd90542505c3445db2c103b8ee71966f88..5e48e5e69e4392bbe51351439437066c3224b216 100644 (file)
@@ -40,6 +40,8 @@ extern struct bt_interrupter *bt_interrupter_create(void)
 {
        struct bt_interrupter *intr = g_new0(struct bt_interrupter, 1);
 
+       BT_ASSERT_PRE_NO_ERROR();
+
        if (!intr) {
                BT_LIB_LOGE_APPEND_CAUSE("Failed to allocate one interrupter.");
                goto error;
This page took 0.023277 seconds and 4 git commands to generate.