Assert Macros in C++
Using assertions is essential in defensive C++ programming. However, you want to see the filename and line number in the error, right. This leads back to using a macro, and we all know how nasty they are
All is explained in this excellent article: http://powerof2games.com/node/10
Posted in Software |