3 ms·
A bunch of modern C programs on Linux are now using __attribute__((cleanup)) which gives you nice cleanups/destructors. You can't compile a modern Linux distro
by rwmj 6y ago
A bunch of modern C programs on Linux are now using __attribute__((cleanup)) which gives you nice cleanups/destructors. You can't compile a modern Linux distro without GCC/Clang support for this attribute.
- pjmlp 6y agoAnd unportable code stuck to GCC C. How ironic that commercial vendors get crucified for C and C++ language extensions.
- SomeoneFromCA 6y agoIt is not even close in terms of functionality to some C++ constructions that emulate Java/C# "finally". Although they are considered "non-canonical" by the C++ purists, I use them often, with great success.