galdar496 / QiGameEngine

Realtime Game Engine designed with C++ and OpenGL.
http://qiengine.blogspot.com/
1 stars 0 forks source link

Add QI_ASSERT to the codebase #20

Closed galdar496 closed 9 years ago

galdar496 commented 9 years ago

Right now the code makes use of the C assert macro which is fine but requires its own defines. If in the future we'd like to use a different kind of assert, changing it all over the code would be tedious. Therefore, let's define the macro QI_ASSERT in Defines.h like this:

#DEFINE QI_ASSERT(x) assert(x); // In DEBUG mode
#DEFINE QI_ASSERT(x) // In RELEASE mode
galdar496 commented 9 years ago

Fixed with 4077ab61b4ba5951053193365f738dabf337291b