-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathtrc.h
47 lines (36 loc) · 1017 Bytes
/
trc.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef clasc_H
#define clasc_H
#include <QCoreApplication>
#include <QMap>
#include <QString>
#include "source/LeLib/util/cinifile.h"
#include "source/Compiler/sourcebuilder.h"
#include "source/OrgAsm/orgasm.h"
class ClascExec {
public:
QStringList m_args;
QSharedPointer<CIniFile> m_project, m_settings;
QMap<QString,QString> m_vals;
QMap<QString,QStringList> m_options;
SourceBuilder* m_builder = nullptr;
QString m_outputFile = "";
QApplication* app = nullptr;
bool m_hasError = false;
int m_failure = 0;
//QCoreApplication* core = nullptr;
ClascExec(int argc, char *argv[]);
void RequireParam(QString param);
void RequireFile(QString param);
int Perform();
int CompileFromProject(QString sourceFile, bool assemble);
int Assemble(QString file);
void PrintUsage();
void Out(QString m);
/* QTextStream& out()
{
static QTextStream ts( stdout );
return ts;
// return qDebug;
}*/
};
#endif // clasc_H