diff --git a/src/basic/macro.h b/src/basic/macro.h index f54f13e4fe..80a1d1abb4 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -458,6 +458,11 @@ static inline int __coverity_check__(int condition) { #endif #endif +#define DEFINE_TRIVIAL_DESTRUCTOR(name, type, func) \ + static inline void name(type *p) { \ + func(p); \ + } + #define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func) \ static inline void func##p(type *p) { \ if (*p) \