Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / dynamic-array.h
index 71cf9af189c97a8ef6d30ffabce1f9ba0946928b..be27cc4958d51a2f2b42320044e371a0e664b492 100644 (file)
@@ -9,7 +9,6 @@
 #define LTTNG_DYNAMIC_ARRAY_H
 
 #include <common/dynamic-buffer.h>
-#include <assert.h>
 
 typedef void (*lttng_dynamic_array_element_destructor)(void *element);
 typedef void (*lttng_dynamic_pointer_array_destructor)(void *ptr);
@@ -52,7 +51,7 @@ static inline
 void *lttng_dynamic_array_get_element(const struct lttng_dynamic_array *array,
                size_t element_index)
 {
-       assert(element_index < array->size);
+       LTTNG_ASSERT(element_index < array->size);
        return array->buffer.data + (element_index * array->element_size);
 }
 
This page took 0.023533 seconds and 4 git commands to generate.