20 lines
306 B
C++
20 lines
306 B
C++
|
#include <QCoreApplication>
|
||
|
#include <iostream>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
extern int debugLevel;
|
||
|
|
||
|
void debug(QString text, int level)
|
||
|
{
|
||
|
if (level & debugLevel)
|
||
|
{
|
||
|
cout << text.toStdString() << endl;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void signal_handler(int signal)
|
||
|
{
|
||
|
cout << "Received signal " << signal << endl;
|
||
|
}
|