blob: 942e474ea3f0a831e9a5f70fd57b7e20f87a7b84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|