4 ms·
> Now, if C had something like Go's "defer"... In GCC and Clang you can use __attribute__((cleanup)) to achieve this. I think MSVC has a similar construct. I'
by exDM69 8y ago
> Now, if C had something like Go's "defer"...
In GCC and Clang you can use __attribute__((cleanup)) to achieve this. I think MSVC has a similar construct.
I'm pretty sure I've seen a portable "defer" library for C somewhere.
- pjmlp 8y ago> I think MSVC has a similar construct. Microsoft rather focus in C++.