3 ms·
grrr why are they introducing guard {} blocks? Would not want an extra level of {block} just for this. __attribute__((cleanup)) gcc/clang extension already wor
by floatboth 6y ago
grrr why are they introducing guard {} blocks? Would not want an extra level of {block} just for this.
__attribute__((cleanup)) gcc/clang extension already works without extra blocks. GLib has been using it for a while https://blogs.gnome.org/desrt/2015/01/30/g_autoptr/ https://blogs.gnome.org/desrt/2015/01/30/g_autoptr/