forked from qt-creator/qt-creator
debugger: switch do fkleint's style of debug output enabling
This commit is contained in:
@@ -72,18 +72,15 @@
|
||||
#include <QtScript/QScriptValue>
|
||||
#include <QtScript/QScriptValueIterator>
|
||||
|
||||
//#define DEBUG_SCRIPT 1
|
||||
#if DEBUG_SCRIPT
|
||||
# define SDEBUG(s) qDebug() << s
|
||||
#else
|
||||
# define SDEBUG(s)
|
||||
#endif
|
||||
# define XSDEBUG(s) qDebug() << s
|
||||
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
|
||||
enum { debugScript = 0 };
|
||||
|
||||
#define SDEBUG(s) do { if (debugScript) qDebug() << s; } while (0)
|
||||
#define XSDEBUG(s) qDebug() << s
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ScriptEngine
|
||||
|
||||
Reference in New Issue
Block a user