| 28 | using namespace wasmtime; |
| 29 | |
| 30 | std::string readFile(const char *name) { |
| 31 | std::ifstream watFile; |
| 32 | watFile.open(name); |
| 33 | std::stringstream strStream; |
| 34 | strStream << watFile.rdbuf(); |
| 35 | return strStream.str(); |
| 36 | } |
| 37 | |
| 38 | int main() { |
| 39 | // Enable interruptible code via `Config` and then create an interrupt |