-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
30 lines (20 loc) · 973 Bytes
/
Copy pathmain.h
File metadata and controls
30 lines (20 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef MAIN_H
#define MAIN_H
#include <QDebug>
//#define DEBUGAST(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: "<<msg;
#define DEBUGAST(msg){}
//#define DEBUGTRE(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: "<<msg;
#define DEBUGTRE(msg){}
#define DEBUGM(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: "<<msg;
#define DEBUGSTCK(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: " <<msg <<"\n<<< STACK TRACE >>>"; \
for(const auto &it : stateStack) { \
qDebug() <<it; \
}
#define DEBUGSTATE(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: " <<msg <<" " <<lexemeValue();
//#define DEBUGlex(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: "<<msg;
#define DEBUGlex(msg){}
//#define DEBUGSYNTX(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: "<<msg;
#define DEBUGSYNTX(msg){}
#define DEBUGEXE(msg) qDebug()<<__FILE__<<" ["<<__LINE__<<"]: "<<msg;
//#define DEBUGEXE(msg){}
#endif // MAIN_H