Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / snapshot.c
index ec10f8d636dbca1cd5ba457763fa09924800d248..51871f7855d2350fb01a38969773c58f903fdd6f 100644 (file)
@@ -13,7 +13,6 @@
 #include <lttng/snapshot-internal.h>
 #include <lttng/snapshot.h>
 
-#include <assert.h>
 #include <stdlib.h>
 
 LTTNG_HIDDEN
@@ -55,8 +54,8 @@ bool lttng_snapshot_output_is_equal(
 {
        bool equal = false;
 
-       assert(a);
-       assert(b);
+       LTTNG_ASSERT(a);
+       LTTNG_ASSERT(b);
 
        if (a->max_size != b->max_size) {
                goto end;
@@ -188,8 +187,8 @@ enum lttng_error_code lttng_snapshot_output_mi_serialize(
        int ret;
        enum lttng_error_code ret_code;
 
-       assert(output);
-       assert(writer);
+       LTTNG_ASSERT(output);
+       LTTNG_ASSERT(writer);
 
        /* Open output element. */
        ret = mi_lttng_writer_open_element(writer,
This page took 0.023659 seconds and 4 git commands to generate.