News for hackers. Stuff that matters.
Re:C++ patterns using plain C by guillaumec on Wednesday June 25, 2014 @09:58AM (#7943866)
Gcc 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.
Re:C++ patterns using plain C by mitchty on Wednesday June 25, 2014 @10:09AM (#7943933)
It is supported by clang though. Maybe you could use clang-cl to get it into msvc no?