diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-02 18:21:49 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:47:10 +0100 |
| commit | b16e2f67e7d392890c6835f98ca9b2a7bb44fe2e (patch) | |
| tree | cf07afb610395dd182e1f243ffccf2a55a13effe /instr.h | |
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 |
