7 ms·
C preprocessor macros that work on whole code blocks
- dr_win 12y agoThis approach has a minor issue. "break" changes semantics inside the block. http://gustedt.wordpress.com/2010/08/14/scope-bound-resource-management-with-for-scopes http://gustedt.wordpress.com/2010/08/14/scope-bound-resource... http://blog.sam.liddicott.com/2013/04/using-for-as-brace-less-scope.html http://blog.sam.liddicott.com/2013/04/using-for-as-brace-les...
- gholap 12y agoYes. I forgot to mention that. Thanks!