ucx/cx/collection.h

branch
newapi
changeset 187
24ce2c326d85
parent 174
0358f1d9c506
child 253
087cc9216f28
--- a/ucx/cx/collection.h	Sun Oct 01 09:23:47 2023 +0200
+++ b/ucx/cx/collection.h	Sun Oct 01 12:08:09 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)

mercurial