lt: make the RETURN_LT and RETURN_LT0 safer
lt_release(lt, (void*) resource)
#define RETURN_LT(lt, result) \
+ do { \
destroy_lt(lt); \
- return result
+ return result; \
+ } while (0)
#define RETURN_LT0(lt) \
+ do { \
destroy_lt(lt); \
- return
+ return; \
+ } while (0)
typedef struct lt_t lt_t;
typedef void (*lt_destroy_t)(void*);
