Debug output for eeprom import. Use "cmake -D CMAKE_BUILD_TYPE=Debug -D DEBUG_IMPORT=ON ../src" to turn it on

This commit is contained in:
Damjan Adamic
2015-06-28 09:34:46 +02:00
parent 56d12d88c1
commit 8a49645c14
4 changed files with 56 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef customdebug_h
#define customdebug_h
#include <QDebug>
// Controls the generation of debug output for EEPROM import
#if defined(DEBUG_MODEL_IMPORT)
inline QDebug eepromImportDebug() { return QDebug(QtDebugMsg); }
#else
#undef eepromImportDebug
inline QNoDebug eepromImportDebug() { return QNoDebug(); }
#endif
#endif