use ExitCode when halting so Drop is called, close terminal stream in rustyline Drop
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
fn main() {
|
||||
fn main() -> std::process::ExitCode {
|
||||
use std::sync::atomic::Ordering;
|
||||
use scryer_prolog::*;
|
||||
|
||||
@@ -7,5 +7,5 @@ fn main() {
|
||||
}).unwrap();
|
||||
|
||||
let mut wam = machine::Machine::new();
|
||||
wam.run_top_level();
|
||||
wam.run_top_level()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user