rust/tests/ui/cross/cross-crate-macro-backtrace/auxiliary/extern_macro_crate.rs
2023-01-11 09:32:08 +00:00

14 lines
270 B
Rust

#![crate_type = "dylib"]
pub fn print(_args: std::fmt::Arguments) {}
#[macro_export]
macro_rules! myprint {
($($arg:tt)*) => ($crate::print(format_args!($($arg)*)));
}
#[macro_export]
macro_rules! myprintln {
($fmt:expr) => (myprint!(concat!($fmt, "\n")));
}