1#include <sysio/vm/backend.hpp>
2#include <sysio/vm/error_codes.hpp>
3#include <sysio/vm/watchdog.hpp>
18 std::cerr <<
"Error, no wasm file provided\n";
22 std::string filename =
argv[1];
37 std::cerr <<
"sys-vm interpreter error\n";
38 std::cerr << ex.
what() <<
" : " << ex.
detail() <<
"\n";
void execute_all(Watchdog &&wd, host_t &host)
Triggers a callback after a given time elapses.
backend_t bkend(hello_wasm, ehm, &wa)
std::vector< uint8_t > read_wasm(const std::string &fname)
virtual const char * what() const =0
virtual const char * detail() const =0