lib: add post condition assertions for current thread error after user functions
[babeltrace.git] / src / lib / trace-ir / trace.c
index 7a61040125a55d496e7d6878b4256b603afb6e06..3bf26b7bcdb8b009a32311ff9dd29e07a3c81582 100644 (file)
@@ -42,6 +42,7 @@
 #include <inttypes.h>
 #include <stdint.h>
 #include <string.h>
+#include <stdbool.h>
 #include <stdlib.h>
 
 #include "attributes.h"
@@ -103,6 +104,7 @@ void destroy_trace(struct bt_object *obj)
 
                        if (elem.func) {
                                elem.func(trace, elem.data);
+                               BT_ASSERT_POST_NO_ERROR();
                        }
 
                        /*
This page took 0.032942 seconds and 4 git commands to generate.