mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-25 16:10:29 +01:00
util: fix the example for DEFINE_TRIVIAL_CLEANUP_FUNC
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9ee00ada3a
commit
ad721d342a
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ static inline void _free_ptr_(void *p) { free(*(void**)p); }
|
|||
|
||||
/**
|
||||
* Use:
|
||||
* DEFINE_TRIVIAL_CLEANUP_FUNC(struct foo, foo_unref)
|
||||
* DEFINE_TRIVIAL_CLEANUP_FUNC(struct foo *, foo_unref)
|
||||
* _cleanup_(foo_unrefp) struct foo *bar;
|
||||
*/
|
||||
#define DEFINE_TRIVIAL_CLEANUP_FUNC(_type, _func) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue