Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / ctf-writer / trace.h
index 1b426821f182d65e181fe88671f1701c28b45da8..63c60798b552118ddb09d91b379b7382d367b5ca 100644 (file)
@@ -117,7 +117,7 @@ int64_t bt_ctf_trace_common_get_environment_field_count(
 
        BT_CTF_ASSERT_PRE_NON_NULL(trace, "Trace");
        ret = bt_ctf_attributes_get_count(trace->environment);
-       BT_ASSERT(ret >= 0);
+       BT_ASSERT_DBG(ret >= 0);
        return ret;
 }
 
This page took 0.023285 seconds and 4 git commands to generate.