diff options
author | Ben Smith <binjimin@gmail.com> | 2017-03-30 14:17:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 14:17:29 -0700 |
commit | ca9ccccd10d1975eb117dd9ce05a189270f2fb01 (patch) | |
tree | 91bd0c8d5fb961fb5287eb77b0a34c199ac07357 /src/binary-reader-objdump.h | |
parent | 2e9e6ce3f5f4ccf2983338fb5353013d2a5bb94d (diff) | |
download | wabt-ca9ccccd10d1975eb117dd9ce05a189270f2fb01.tar.gz wabt-ca9ccccd10d1975eb117dd9ce05a189270f2fb01.tar.bz2 wabt-ca9ccccd10d1975eb117dd9ce05a189270f2fb01.zip |
Use classes + virtual functions for BinaryReader (#376)
This adds a few new classes:
* BinaryReader: the abstract base class
* BinaryReaderNop: implements all of BinaryReader, but does nothing
* BinaryReaderLogging: logs calls through BinaryReader, and forwards to
another BinaryReader
Typically this means we can remove the Context structs from these
implementations, since that data can just move into the BinaryReader
subclasses.
I also took the opportunity to rename the new member functions to
MixedCase instead of snake_case, since that's more common in C++.
Diffstat (limited to 'src/binary-reader-objdump.h')
0 files changed, 0 insertions, 0 deletions