summaryrefslogtreecommitdiff
path: root/src/binary-reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r--src/binary-reader.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h
index 2c72f6d8..30a680dd 100644
--- a/src/binary-reader.h
+++ b/src/binary-reader.h
@@ -24,16 +24,17 @@
#include "common.h"
#include "opcode.h"
-#define WABT_READ_BINARY_OPTIONS_DEFAULT \
- { nullptr, false }
-
namespace wabt {
class Stream;
struct ReadBinaryOptions {
- Stream* log_stream;
- bool read_debug_names;
+ ReadBinaryOptions() = default;
+ ReadBinaryOptions(Stream* log_stream, bool read_debug_names)
+ : log_stream(log_stream), read_debug_names(read_debug_names) {}
+
+ Stream* log_stream = nullptr;
+ bool read_debug_names = false;
};
class BinaryReaderDelegate {