Do not use REFS_DEBUG define, instead use DEBUG

This commit is contained in:
Pali Rohár 2013-02-05 17:54:21 +01:00
parent 297bb8f2dd
commit f1602c25e2
2 changed files with 5 additions and 5 deletions

View file

@ -126,18 +126,18 @@ extern void PrintOnStdOut(const char *format, ...);
#endif
#ifdef REFS_DEBUG // {
#ifdef DEBUG // {
/**
** Assert a condition for references
*/
#define RefsAssert(cond) \
do { if (!(cond)) { AbortAt(__FILE__, __LINE__, __func__, #cond); } } while (0)
#else // }{ REFS_DEBUG
#else // }{ DEBUG
#define RefsAssert(cond) /* disabled */
#endif // } !REFS_DEBUG
#endif // } !DEBUG
/*============================================================================
== Definitions

View file

@ -509,9 +509,9 @@ static void DrawDecoration(const CUnit &unit, const CUnitType &type, const Pixel
{
int x = screenPos.x;
int y = screenPos.y;
#ifdef REFS_DEBUG
#ifdef DEBUG
// Show the number of references.
VideoDrawNumberClip(x + 1, y + 1, GetGameFont(), unit.Refs);
CLabel(GetGameFont()).DrawClip(x + 1, y + 1, unit.Refs);
#endif
UpdateUnitVariables(const_cast<CUnit &>(unit));