Y
Hacker News
new
|
ask
|
show
|
jobs
by
jnwatson
1869 days ago
gcc and llvm have a cleanup attribute you can use for this. Systemd uses it.
https://fdiv.net/2015/10/08/emulating-defer-c-clang-or-gccbl...