Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / evaluation.c
index 15e4f11ee3d6f53b2e4389fc834d619c7c5453c1..6b59949e39f00c45d867cad761715a85dffef6c1 100644 (file)
@@ -14,7 +14,6 @@
 #include <common/macros.h>
 #include <common/error.h>
 #include <stdbool.h>
-#include <assert.h>
 
 LTTNG_HIDDEN
 void lttng_evaluation_init(struct lttng_evaluation *evaluation,
@@ -118,8 +117,8 @@ ssize_t lttng_evaluation_create_from_payload(
                evaluation_size += ret;
                break;
        case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES:
-               assert(condition);
-               assert(condition->type ==
+               LTTNG_ASSERT(condition);
+               LTTNG_ASSERT(condition->type ==
                                LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES);
                ret = lttng_evaluation_event_rule_matches_create_from_payload(
                                container_of(condition,
@@ -155,6 +154,6 @@ void lttng_evaluation_destroy(struct lttng_evaluation *evaluation)
                return;
        }
 
-       assert(evaluation->destroy);
+       LTTNG_ASSERT(evaluation->destroy);
        evaluation->destroy(evaluation);
 }
This page took 0.023236 seconds and 4 git commands to generate.