| 8 | using namespace wasmtime; |
| 9 | |
| 10 | std::string readFile(const char *name) { |
| 11 | std::ifstream watFile; |
| 12 | watFile.open(name); |
| 13 | std::stringstream strStream; |
| 14 | strStream << watFile.rdbuf(); |
| 15 | return strStream.str(); |
| 16 | } |
| 17 | |
| 18 | int main() { |
| 19 | // Create our `store` context and then compile a module and create an |