aboutsummaryrefslogtreecommitdiff
path: root/qtmips_asm/simpleasm.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-08-22 12:18:33 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-08-22 12:18:33 +0200
commita385be02219abc1fd751908e559286dc1a370e12 (patch)
tree8f681f58c1121fea4a5ee252a04f83d643a988a7 /qtmips_asm/simpleasm.h
parent4dd9058da959ef5adb33de2689a85d84270f07b3 (diff)
downloadqtmips-a385be02219abc1fd751908e559286dc1a370e12.tar.gz
qtmips-a385be02219abc1fd751908e559286dc1a370e12.tar.bz2
qtmips-a385be02219abc1fd751908e559286dc1a370e12.zip
Provide support for include directive in simple assembler.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_asm/simpleasm.h')
-rw-r--r--qtmips_asm/simpleasm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_asm/simpleasm.h b/qtmips_asm/simpleasm.h
index 773aa39..f97904d 100644
--- a/qtmips_asm/simpleasm.h
+++ b/qtmips_asm/simpleasm.h
@@ -37,6 +37,7 @@
#define SIMPLEASM_H
#include <QString>
+#include <QStringList>
#include "fixmatheval.h"
#include "qtmipsmachine.h"
#include "messagetype.h"
@@ -72,6 +73,7 @@ public:
int line_number = 0, QString *error_ptr = nullptr);
bool finish(QString *error_ptr = nullptr);
private:
+ QStringList include_stack;
bool error_occured;
bool fatal_occured;
SymbolTableDb *symtab;