basic/macro: add comment explaining DEFINE_TRIVIAL_DESTRUCTOR()

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-10-06 16:45:30 +02:00
parent f6210525cc
commit 3c4c109de1

View File

@@ -310,6 +310,8 @@ static inline int __coverity_check_and_return__(int condition) {
#define FOREACH_ARRAY(i, array, num) \
_FOREACH_ARRAY(i, array, num, UNIQ_T(m, UNIQ), UNIQ_T(end, UNIQ))
/* A wrapper for 'func' to return void.
* Only useful when a void-returning function is required by some API. */
#define DEFINE_TRIVIAL_DESTRUCTOR(name, type, func) \
static inline void name(type *p) { \
func(p); \