aboutsummaryrefslogtreecommitdiffstats
path: root/dwasm-cpp/dwasm.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-06-30 21:01:59 +0000
committerbloodstalker <thabogre@gmail.com>2018-06-30 21:01:59 +0000
commitb0a200f97ad40c3e7c9c4a0237b850df1a53db3c (patch)
tree8c02820a72535b4c5afc524d7e346822cf5bb31c /dwasm-cpp/dwasm.cpp
parentupdate (diff)
downloaddwasm-b0a200f97ad40c3e7c9c4a0237b850df1a53db3c.tar.gz
dwasm-b0a200f97ad40c3e7c9c4a0237b850df1a53db3c.zip
update
Diffstat (limited to '')
-rw-r--r--dwasm-cpp/dwasm.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/dwasm-cpp/dwasm.cpp b/dwasm-cpp/dwasm.cpp
index 35ab040..e326411 100644
--- a/dwasm-cpp/dwasm.cpp
+++ b/dwasm-cpp/dwasm.cpp
@@ -18,13 +18,20 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*/
/**********************************************************************************************************************/
+#include <cstddef>
+#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "dwasm.hpp"
+#include "misc.hpp"
#include "wasm.h"
-
+/**********************************************************************************************************************/
int main (int argc, char** argv) {
+ std::string path = "../test/injected.wasm";
+ std::ifstream wasm(path, std::ios_base::binary);
+ read_header(wasm);
+ //dump_file(wasm);
return 0;
}
/**********************************************************************************************************************/