debugger: switch do fkleint's style of debug output enabling

This commit is contained in:
hjk
2011-01-25 10:59:45 +01:00
parent 1160c3e92d
commit c3ff7fa73d
3 changed files with 14 additions and 25 deletions

View File

@@ -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