Browse Source

adapter: make it a little clearer where unreachable is coming from

pull/6374/head
Pat Hickey 2 years ago
parent
commit
f8068634ba
  1. 4
      src/macros.rs

4
src/macros.rs

@ -50,14 +50,14 @@ pub(crate) fn eprint_u32(x: u32) {
/// A minimal `unreachable`.
macro_rules! unreachable {
() => {{
eprint!("unreachable executed at line ");
eprint!("unreachable executed at adapter line ");
crate::macros::eprint_u32(line!());
eprint!("\n");
wasm32::unreachable()
}};
($arg:tt) => {{
eprint!("unreachable executed at line ");
eprint!("unreachable executed at adapter line ");
crate::macros::eprint_u32(line!());
eprint!(": ");
eprintln!($arg);

Loading…
Cancel
Save