lib: add pre condition asserts to check current thread has no error
[babeltrace.git] / src / lib / util.c
index af2d1a4a61a4d63dc71006a66d2e5cd19b010a47..8c54e0ea4ea2f4509b532b24f591c345ebde2d25 100644 (file)
@@ -42,6 +42,7 @@ bt_util_clock_cycles_to_ns_from_origin(uint64_t cycles,
                BT_FUNC_STATUS_OK;
        int ret;
 
+       BT_ASSERT_PRE_NO_ERROR();
        BT_ASSERT_PRE_NON_NULL(ns, "Nanoseconds (output)");
        BT_ASSERT_PRE(frequency != UINT64_C(-1) && frequency != 0,
                "Invalid frequency: freq=%" PRIu64, frequency);
This page took 0.022814 seconds and 4 git commands to generate.