diff options
author | Denis Kenzior <denkenz@gmail.com> | 2024-02-02 16:52:17 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-02-02 16:52:17 -0600 |
commit | c46b477a7765824a254ad3558d70519dc551df66 (patch) | |
tree | 28b2f38d191d29c4ff4b763eb774f69ee0041490 | |
parent | a94c9eb8301b606aa3df716c82e02cfff3566f7e (diff) |
useful: Check whether _auto_ is already defined
-rw-r--r-- | ell/useful.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ell/useful.h b/ell/useful.h index ab88f525..7bb924bc 100644 --- a/ell/useful.h +++ b/ell/useful.h @@ -59,8 +59,10 @@ static inline unsigned char bit_field(const unsigned char oct, _x / _d; \ }) +#ifndef _auto_ #define _auto_(func) \ __L_AUTODESTRUCT(func) +#endif /* * Trick the compiler into thinking that var might be changed somehow by |