mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
basic/macro: add comment explaining DEFINE_TRIVIAL_DESTRUCTOR()
This commit is contained in:
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user