3 ms·
Hopefully it'd at least be syntactically similar, so we can have an #ifdef __STDC_CLEANUP__ #define my_cleanup(func) stdc_cleanup(func) #else #define m
by eqvinox 7y ago
Hopefully it'd at least be syntactically similar, so we can have an
#ifdef __STDC_CLEANUP__
#define my_cleanup(func) stdc_cleanup(func)
#else
#define my_cleanup(func) __attribute__((cleanup(func)))
#endif
i.e. it would require that it at least goes in the same places as an attribute.