diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-25 12:03:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-25 12:03:02 -0700 |
commit | c410d93d3af9813f889b4011f964d4becf43bc27 (patch) | |
tree | e6f3f330d5dd44755ab065a552403c957f96583c /src/binaryen-c.h | |
parent | a88f8f275e068d6cdfb8879dc3bab1fe3201efbc (diff) | |
download | binaryen-c410d93d3af9813f889b4011f964d4becf43bc27.tar.gz binaryen-c410d93d3af9813f889b4011f964d4becf43bc27.tar.bz2 binaryen-c410d93d3af9813f889b4011f964d4becf43bc27.zip |
add c api method to interpret a module, calling its start method (#601)
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index a587e03ac..7403d0e81 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -344,6 +344,11 @@ size_t BinaryenModuleWrite(BinaryenModuleRef module, char* output, size_t output // Deserialize a module from binary form. BinaryenModuleRef BinaryenModuleRead(char* input, size_t inputSize); +// Execute a module in the Binaryen interpreter. This will create an instance of +// the module, run it in the interpreter - which means running the start method - +// and then destroying the instance. +void BinaryenModuleInterpret(BinaryenModuleRef module); + // // ========== CFG / Relooper ========== // |