Skip to content

Commit

Permalink
Add new debug definition file.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleimon committed Jan 21, 2015
1 parent 2f08922 commit cadc3e6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions src/common/blob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
#include "exec.h"
#else
#include "pixymon.h"
#include "debug.h"
#include "debuglog.h"
#endif
#include <blob.h>
#include "../host/pixymon/debug.h"

#ifdef DEBUG
#ifndef HOST
Expand Down Expand Up @@ -321,7 +322,7 @@ int CBlobAssembler::Add(const SSegment &segment) {
CBlob *newBlob= new (std::nothrow) CBlob();
if (newBlob==NULL)
{
// DBG("blobs %d\nheap full", m_blobCount);
DBG("blobs %d\nheap full", m_blobCount);
return -1;
}
m_blobCount++;
Expand Down
15 changes: 8 additions & 7 deletions src/common/blobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
//

#ifndef PIXY
#include "debug.h"
#include "debuglog.h"
#endif
#include "blobs.h"
#include "../host/pixymon/debug.h"

#define CC_SIGNATURE(s) (m_ccMode==CC_ONLY || m_clut.getType(s)==CL_MODEL_TYPE_COLORCODE)

Expand Down Expand Up @@ -777,8 +778,8 @@ bool Blobs::analyzeDistances(BlobA *blobs0[], int16_t numBlobs0, BlobA *blobs[],
}
}
#ifndef PIXY
// if (!result)
// DBG("not set!");
if (!result)
DBG("not set!");
#endif
return result;
}
Expand Down Expand Up @@ -827,8 +828,8 @@ void Blobs::cleanup(BlobA *blobs[], int16_t *numBlobs)
if (lowerArea<=maxEqualArea && maxEqualArea<=upperArea)
newBlobs[numNewBlobs++] = blobs[i];
#ifndef PIXY
// else if (*numBlobs>=5 && (blobs[i]->m_model&0x07)==2)
// DBG("eliminated!");
else if (*numBlobs>=5 && (blobs[i]->m_model&0x07)==2)
DBG("eliminated!");
#endif
}

Expand Down Expand Up @@ -873,8 +874,8 @@ void Blobs::printBlobs()
#ifndef PIXY
int i;
BlobA *blobs = (BlobA *)m_blobs;
// for (i=0; i<m_numBlobs; i++)
// DBG("blob %d: %d %d %d %d %d", i, blobs[i].m_model, blobs[i].m_left, blobs[i].m_right, blobs[i].m_top, blobs[i].m_bottom);
for (i=0; i<m_numBlobs; i++)
DBG("blob %d: %d %d %d %d %d", i, blobs[i].m_model, blobs[i].m_left, blobs[i].m_right, blobs[i].m_top, blobs[i].m_bottom);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion src/common/colorlut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <math.h>
#include <string.h>
#ifndef PIXY
#include "debug.h"
#include "debuglog.h"
#endif
#include "colorlut.h"
#include "calc.h"
Expand Down
3 changes: 1 addition & 2 deletions src/host/pixymon/pixymon.pro
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ INCLUDEPATH += ../../common

QMAKE_CXXFLAGS_DEBUG += -O0
QMAKE_CXXFLAGS += -Wno-unused-parameter
#QMAKE_CXXFLAGS += -mno-ms-bitfields
FORMS += mainwindow.ui \
configdialog.ui \
about.ui
Expand All @@ -96,7 +95,7 @@ win32 {
LIBS += ../windows/libusb-1.0.dll.a
HEADERS += ../windows/libusb.h
INCLUDEPATH += ../windows

QMAKE_CXXFLAGS += -mno-ms-bitfields
}

macx {
Expand Down

0 comments on commit cadc3e6

Please sign in to comment.