Removed DebugCheck
This commit is contained in:
parent
c11d1e2bc3
commit
1611108910
1 changed files with 1 additions and 17 deletions
|
@ -134,13 +134,6 @@ typedef struct _missile_type_ MissileType;
|
|||
fprintf(stderr, "Assertion failed at %s:%d: %s\n", __FILE__, __LINE__, #cond); \
|
||||
abort(); }} while (0)
|
||||
|
||||
/**
|
||||
** Debug check condition. If cond is true abort with file,line.
|
||||
*/
|
||||
#define DebugCheck(cond) do { if (cond) { \
|
||||
fprintf(stderr, "DebugCheck at %s:%d: %s\n", __FILE__, __LINE__, #cond); \
|
||||
abort(); }} while (0)
|
||||
|
||||
/**
|
||||
** Print debug information of level 0.
|
||||
*/
|
||||
|
@ -192,7 +185,6 @@ typedef struct _missile_type_ MissileType;
|
|||
#else // }{ DEBUG
|
||||
|
||||
#define Assert(cond) /* disabled */
|
||||
#define DebugCheck(cond) /* disabled */
|
||||
|
||||
#define DebugLevel0(args) /* disabled */
|
||||
#define DebugLevel1(args) /* disabled */
|
||||
|
@ -208,23 +200,15 @@ typedef struct _missile_type_ MissileType;
|
|||
#ifdef REFS_DEBUG // {
|
||||
|
||||
/**
|
||||
** Debug check condition for references
|
||||
** Assert a condition for references
|
||||
*/
|
||||
#define RefsAssert(cond) do { if (!(cond)) { \
|
||||
fprintf(stderr, "Assertion failed at %s:%d\n", __FILE__, __LINE__); \
|
||||
abort(); } } while (0)
|
||||
|
||||
/**
|
||||
** Debug check condition for references
|
||||
*/
|
||||
#define RefsDebugCheck(cond) do { if (cond) { \
|
||||
fprintf(stderr, "DebugCheck at %s:%d\n", __FILE__, __LINE__); \
|
||||
abort(); } } while (0)
|
||||
|
||||
#else // }{ REFS_DEBUG
|
||||
|
||||
#define RefsAssert(cond) /* disabled */
|
||||
#define RefsDebugCheck(cond) /* disabled */
|
||||
|
||||
#endif // } !REFS_DEBUG
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue