Eeschema: fix bug in release builds.

* Change debug message macro from wxASSERT to wxCHECK so that the primary
  object token name gets called instead of compiled away on release builds.
This commit is contained in:
Wayne Stambaugh 2016-07-06 09:52:47 -04:00
parent 4ed346ea64
commit 61e886e956
1 changed files with 7 additions and 7 deletions

View File

@ -859,7 +859,7 @@ SCH_BITMAP* SCH_LEGACY_PLUGIN::loadBitmap( FILE_LINE_READER& aReader )
const char* line = aReader.Line();
wxASSERT( strCompare( "$Bitmap", line, &line ) );
wxCHECK( strCompare( "$Bitmap", line, &line ), NULL );
line = aReader.ReadLine();
@ -936,7 +936,7 @@ SCH_JUNCTION* SCH_LEGACY_PLUGIN::loadJunction( FILE_LINE_READER& aReader )
const char* line = aReader.Line();
wxASSERT( strCompare( "Connection", line, &line ) );
wxCHECK( strCompare( "Connection", line, &line ), NULL );
wxString name;
@ -958,7 +958,7 @@ SCH_NO_CONNECT* SCH_LEGACY_PLUGIN::loadNoConnect( FILE_LINE_READER& aReader )
const char* line = aReader.Line();
wxASSERT( strCompare( "NoConn", line, &line ) );
wxCHECK( strCompare( "NoConn", line, &line ), NULL );
wxString name;
@ -980,7 +980,7 @@ SCH_LINE* SCH_LEGACY_PLUGIN::loadWire( FILE_LINE_READER& aReader )
const char* line = aReader.Line();
wxASSERT( strCompare( "Wire", line, &line ) );
wxCHECK( strCompare( "Wire", line, &line ), NULL );
if( strCompare( "Wire", line, &line ) )
wire->SetLayer( LAYER_WIRE );
@ -1014,7 +1014,7 @@ SCH_BUS_ENTRY_BASE* SCH_LEGACY_PLUGIN::loadBusEntry( FILE_LINE_READER& aReader )
{
const char* line = aReader.Line();
wxASSERT( strCompare( "Entry", line, &line ) );
wxCHECK( strCompare( "Entry", line, &line ), NULL );
std::auto_ptr< SCH_BUS_ENTRY_BASE > busEntry;
@ -1059,7 +1059,7 @@ SCH_TEXT* SCH_LEGACY_PLUGIN::loadText( FILE_LINE_READER& aReader )
{
const char* line = aReader.Line();
wxASSERT( strCompare( "Text", line, &line ) );
wxCHECK( strCompare( "Text", line, &line ), NULL );
std::auto_ptr< SCH_TEXT> text;
@ -1141,7 +1141,7 @@ SCH_COMPONENT* SCH_LEGACY_PLUGIN::loadComponent( FILE_LINE_READER& aReader )
{
const char* line = aReader.Line();
wxASSERT( strCompare( "$Comp", line, &line ) );
wxCHECK( strCompare( "$Comp", line, &line ), NULL );
std::auto_ptr< SCH_COMPONENT > component( new SCH_COMPONENT() );