diff -r 8c8aed7e1756 -r e5909dff0dbf ucx/cx/collection.h --- a/ucx/cx/collection.h Sun Jul 02 12:06:45 2023 +0200 +++ b/ucx/cx/collection.h Sun Jul 02 13:23:51 2023 +0200 @@ -127,6 +127,15 @@ (c)->store_pointer ? (*((void **) (e))) : (e)) +/** + * Invokes all available destructor functions for a specific element. + * + * Usually only used by collection implementations. There should be no need + * to invoke this macro manually. + * + * @param c the collection + * @param e the element + */ #define cx_invoke_destructor(c, e) \ if ((c)->simple_destructor) cx_invoke_simple_destructor(c,e); \ if ((c)->advanced_destructor) cx_invoke_advanced_destructor(c,e)