rust/src/test/ui/cross/cross-crate-macro-backtrace/auxiliary/extern_macro_crate.rs

14 lines
262 B
Rust
Raw Normal View History

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