4 ms·
I remember something implemented as GCC extension (the cleanup variable attribute) but I never used it so I can't judge if it's really what are you searching fo
by invernomut0 12y ago
I remember something implemented as GCC extension (the cleanup variable attribute) but I never used it so I can't judge if it's really what are you searching for.
- guillaumec 12y agoGcc cleanup extension works very well for RAII, I used it extensively to write a simple profiler for a video game project (just add 'PROFILE' on top of a function to have it automatically profiled). The only problem is that this is not supported by MSVC.
- mitchty 12y agoIt is supported by clang though. Maybe you could use clang-cl to get it into msvc no?