diff options
Diffstat (limited to 'instr.h')
| -rw-r--r-- | instr.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#ifndef INSTR_H +#define INSTR_H + +#include "types.h" +#include <QString> +#include <stdio.h> + +struct WasmInstr +{ + quint32 address; + QString instr; + + static int parse(FILE *f, WasmInstr &instr, QString &error, + bool *end = nullptr); + static int parse(FILE *f, varuint32 maxlen, QVector<WasmInstr> &instr, + QString &error); + bool operator==(const WasmInstr &other) const + { + return address == other.address + && instr == other.instr; + } +}; + +#endif |
