4 ms·
if you can rely on gcc, cleanup attribute is probably the best you can do. The solution in original post doesn't cope with "break", "continue", "return" (and of
by khc 13y ago
if you can rely on gcc, cleanup attribute is probably the best you can do. The solution in original post doesn't cope with "break", "continue", "return" (and of course, "goto", but I don't remember if cleanup attribute handles that either).
Looks like their project already uses C++ though, so why don't they just use C++ for this is beyond me.
- dllthomas 13y agoAgreed.
- deleted 13y ago[deleted]