diff options
author | natrixaeria <janng@gmx.de> | 2019-05-22 20:55:43 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-22 20:55:43 +0200 |
commit | 9cc2841cf49a6180dc9426892d11e957142e88ea (patch) | |
tree | 5ed6849b74be1535e44edfac80afb4beea497678 /WebInterface/wasm/asm-paint/src | |
parent | e724788ce9345f6fb049d4de447657861ac46f69 (diff) |
Play around with wasm
Diffstat (limited to 'WebInterface/wasm/asm-paint/src')
-rw-r--r-- | WebInterface/wasm/asm-paint/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebInterface/wasm/asm-paint/src/lib.rs b/WebInterface/wasm/asm-paint/src/lib.rs index 908b857..a4f4f54 100644 --- a/WebInterface/wasm/asm-paint/src/lib.rs +++ b/WebInterface/wasm/asm-paint/src/lib.rs @@ -10,10 +10,10 @@ static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; #[wasm_bindgen] extern { - fn log(s: &str); + fn my_alert(s: &str); } #[wasm_bindgen] pub fn greet() { - log("Hello, asm-paint!"); + my_alert("Hello, asm-paint!"); } |