| 129 | } |
| 130 | |
| 131 | void instance_type::compile(const std::string &path) |
| 132 | { |
| 133 | // Read from file |
| 134 | context->file_path = path; |
| 135 | std::ifstream in(path, std::ios::binary); |
| 136 | if (!in.is_open()) |
| 137 | throw fatal_error(path + ": No such file or directory"); |
| 138 | compile(in); |
| 139 | } |
| 140 | |
| 141 | void instance_type::compile(std::istream &in) |
| 142 | { |
no test coverage detected