assert.h

Go to the documentation of this file.
00001 
00023 #ifndef __ASSERT_H__
00024 #define __ASSERT_H__
00025 
00026 
00027 /*******************************************************************************
00028  *
00029  *  Macros
00030  *
00031  ******************************************************************************/
00032 
00033 
00042 #define ASSERT(cond)                                            \
00043 {                                                               \
00044     if ((cond) == 0)                                            \
00045     {                                                           \
00046         printf("ASSERT ERROR (%s): file = %s, line = %d\n",     \
00047             #cond, __FILE__, __LINE__);                         \
00048                                                                 \
00049         abort();                                                \
00050     }                                                           \
00051 }
00052 
00053 
00054 #endif // __ASSERT_H__ 
00055 

Generated on Sat Sep 24 09:00:12 2011 for ScoreFour by  doxygen 1.4.5