1 2 | #define _cleanup_free_ __attribute__((cleanup(freep))) static inline void freep(void *p) { free(*(void **)p); } |
Is there an analagous feature in MSVC?
1 2 | #define _cleanup_free_ __attribute__((cleanup(freep))) static inline void freep(void *p) { free(*(void **)p); } |