-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
host_impl: make output streams configurable (#109)
## Summary Allow for configuring at run-time where to write the output and error text for the VM host procedures. This is an internal change aimed at making debugging and testing easier. ## Details * require providing the output and error streams to use for `core.write` and `core.writeErr` via the `HostEnv` instance * support passing an environment closure (`RootRef`) to the VM via the type-information `vmexec.run` overload * rename `writeToFile` to `writeToStream` and have it take a `Stream` as the destination rather than a file This also fixes `core.writeErr` always writing to the standard output stream (`writeToFile` always used `stdout`, ignoring the file argument).
- Loading branch information
Showing
4 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters