ctf: make src.ctf.fs append error causes
[babeltrace.git] / include / babeltrace2 / current-thread.h
index 626c2ae6c8e43e73ca27077beb08b8398af9e694..39c6ae228724d056eb5bcdf950e7ef1c5d27537f 100644 (file)
@@ -86,9 +86,15 @@ bt_current_thread_error_append_cause_from_message_iterator(
                (_self_cc), __FILE__, __LINE__, (_msg_fmt), ##__VA_ARGS__)
 
 #define BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_MESSAGE_ITERATOR(_self_iter, _msg_fmt, ...) \
-       bt_current_thread_error_append_cause_from_component( \
+       bt_current_thread_error_append_cause_from_message_iterator( \
                (_self_iter), __FILE__, __LINE__, (_msg_fmt), ##__VA_ARGS__)
 
+#define BT_CURRENT_THREAD_MOVE_ERROR_AND_RESET(_var)   \
+       do {                                            \
+               bt_current_thread_move_error(_var);     \
+               (_var) = NULL;                          \
+       } while (0)
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.023998 seconds and 4 git commands to generate.