Fixed __WXDEBUG__ references to use #ifdef rather than checking for it being greater than 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
DbList WXDLLEXPORT *PtrBegDbList = 0;
|
DbList WXDLLEXPORT *PtrBegDbList = 0;
|
||||||
|
|
||||||
#if __WXDEBUG__ > 0
|
#ifdef __WXDEBUG__
|
||||||
extern wxList TablesInUse;
|
extern wxList TablesInUse;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -763,7 +763,7 @@ void wxDB::Close(void)
|
|||||||
// There should be zero Ctable objects still connected to this db object
|
// There should be zero Ctable objects still connected to this db object
|
||||||
assert(nTables == 0);
|
assert(nTables == 0);
|
||||||
|
|
||||||
#if __WXDEBUG__ > 0
|
#ifdef __WXDEBUG__
|
||||||
CstructTablesInUse *tiu;
|
CstructTablesInUse *tiu;
|
||||||
wxNode *pNode;
|
wxNode *pNode;
|
||||||
pNode = TablesInUse.First();
|
pNode = TablesInUse.First();
|
||||||
|
@@ -95,7 +95,7 @@
|
|||||||
ULONG lastTableID = 0;
|
ULONG lastTableID = 0;
|
||||||
|
|
||||||
|
|
||||||
#if __WXDEBUG__ > 0
|
#ifdef __WXDEBUG__
|
||||||
wxList TablesInUse;
|
wxList TablesInUse;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ wxTable::wxTable(wxDB *pwxDB, const char *tblName, const int nCols,
|
|||||||
tableID = ++lastTableID;
|
tableID = ++lastTableID;
|
||||||
sprintf(s, "wxTable constructor (%-20s) tableID:[%6lu] pDb:[%p]", tblName,tableID,pDb);
|
sprintf(s, "wxTable constructor (%-20s) tableID:[%6lu] pDb:[%p]", tblName,tableID,pDb);
|
||||||
|
|
||||||
#if __WXDEBUG__ > 0
|
#ifdef __WXDEBUG__
|
||||||
CstructTablesInUse *tableInUse;
|
CstructTablesInUse *tableInUse;
|
||||||
tableInUse = new CstructTablesInUse();
|
tableInUse = new CstructTablesInUse();
|
||||||
tableInUse->tableName = tblName;
|
tableInUse->tableName = tblName;
|
||||||
@@ -250,8 +250,7 @@ wxTable::~wxTable()
|
|||||||
pDb->WriteSqlLog(s);
|
pDb->WriteSqlLog(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef PROGRAM_FP4UPG
|
#ifdef __WXDEBUG__
|
||||||
#if __WXDEBUG__ > 0
|
|
||||||
if (tableID)
|
if (tableID)
|
||||||
{
|
{
|
||||||
bool found = FALSE;
|
bool found = FALSE;
|
||||||
@@ -276,7 +275,7 @@ wxTable::~wxTable()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
// Decrement the wxDB table count
|
// Decrement the wxDB table count
|
||||||
if (pDb)
|
if (pDb)
|
||||||
pDb->nTables--;
|
pDb->nTables--;
|
||||||
|
Reference in New Issue
Block a user