Cleanup internal logic.

This commit is contained in:
losfair
2019-06-27 17:54:06 +08:00
parent 1bd30bed4b
commit db117d2f26
5 changed files with 41 additions and 43 deletions

View File

@ -1,10 +1,5 @@
use blake2::{Blake2b, Digest};
#[link(wasm_import_module = "wasmer_suspend")]
extern "C" {
fn check_interrupt();
}
fn main() {
let mut data: Vec<u8> = b"test".to_vec();
@ -17,8 +12,5 @@ fn main() {
if i % 1000000 == 0 {
println!("Round {}: {:?}", i, data);
}
unsafe {
check_interrupt();
}
}
}