Guest User

Untitled

a guest
Dec 18th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #[wasm_bindgen]
  2. extern "C" {
  3. #[wasm_bindgen(js_namespace = console)]
  4. fn log(msg: &str);
  5. }
  6.  
  7. macro_rules! log {
  8. ($($t:tt)*) => (log(&format!($($t)*)))
  9. }
  10.  
  11. // Called by our JS entry point to run the example.
  12. #[wasm_bindgen]
  13. pub fn run() -> Result<(), JsValue> {
  14. // etc
Add Comment
Please, Sign In to add comment