Quantcast
Channel: cnicholson.net » c++
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Stupid C++ Tricks: Adventures in Assert

This is a re-hosting of the original Assert article I wrote in April 2007,  during the epic rise and fall of Power of Two Games.  I’m reprinting it here on my personal site now that Pow2 is defunct and...

View Article



Stupid C++ Tricks: do/while(0) and C4127

A nice little quickie:  I briefly discuss in my assert ramblings why it’s important to wrap all of your multi-line macros in do/while(0) blocks.  An unfortunate side-effect of this is that the...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images