On Tue, Jul 24, 2012 at 11:51 PM, Holger Hans Peter Freyther hfreyther@sysmocom.de wrote:
Should we use a GCC extension that helps dealing with local variables? GCC can call a cleanup function on exit of the scope, an example can be seen here[1] nad this[2] is the description of the feature.
Oh, this looks like "hack your C to be C++", isn't it better to just use C++ then? It has a very clean semantics for this which is supported by _all_ compilers.