Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / include / lttng / event-expr-internal.h
index e51a770ced3492fea1ead5c03a69c0100f093abf..9d717b8674c0e1a9e08ad635c03717f358ed91b0 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef LTTNG_EVENT_EXPR_INTERNAL_H
 #define LTTNG_EVENT_EXPR_INTERNAL_H
 
-#include <assert.h>
 #include <common/macros.h>
 #include <lttng/event-expr.h>
 
@@ -51,7 +50,7 @@ struct lttng_event_expr_array_field_element {
 static inline
 bool lttng_event_expr_is_lvalue(const struct lttng_event_expr *expr)
 {
-       assert(expr);
+       LTTNG_ASSERT(expr);
        return expr->type == LTTNG_EVENT_EXPR_TYPE_EVENT_PAYLOAD_FIELD ||
                        expr->type == LTTNG_EVENT_EXPR_TYPE_CHANNEL_CONTEXT_FIELD ||
                        expr->type == LTTNG_EVENT_EXPR_TYPE_APP_SPECIFIC_CONTEXT_FIELD ||
This page took 0.02317 seconds and 4 git commands to generate.