.
This commit is contained in:
parent
995813279f
commit
d17c8ea847
1 changed files with 3 additions and 3 deletions
|
|
@ -9,12 +9,12 @@ typedef void (^__defer_block_t)(void);
|
||||||
|
|
||||||
static inline void __defer_exec(__defer_block_t *blk) { (*blk)(); }
|
static inline void __defer_exec(__defer_block_t *blk) { (*blk)(); }
|
||||||
|
|
||||||
#define __cat_2(a, b) a##b
|
#define __concat__2(a, b) a##b
|
||||||
#define __cat_1(a, b) __cat_2(a, b)
|
#define __concat(a, b) __concat__2(a, b)
|
||||||
|
|
||||||
#define scope_exit \
|
#define scope_exit \
|
||||||
__attribute__((cleanup(__defer_exec), unused)) \
|
__attribute__((cleanup(__defer_exec), unused)) \
|
||||||
__defer_block_t __cat_1(_defer_, __LINE__) = ^
|
__defer_block_t __concat(_defer_, __LINE__) = ^
|
||||||
|
|
||||||
#define auto __auto_type
|
#define auto __auto_type
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue