Skip to main content

xcb_rust_connection/helpers/
macros.rs

1#[macro_export]
2#[cfg(feature = "debug")]
3macro_rules! debug {
4    ($($arg:tt)*) => {{
5        tiny_std::eprintln!("[{}:L#{}] {}", file!(), line!(), format_args!($($arg)*));
6    }}
7}
8#[macro_export]
9#[cfg(not(feature = "debug"))]
10macro_rules! debug {
11    ($($arg:tt)*) => {{}};
12}