stack_graphs/debugging.rs
1// -*- coding: utf-8 -*-
2// ------------------------------------------------------------------------------------------------
3// Copyright © 2021, stack-graphs authors.
4// Licensed under either of Apache License, Version 2.0, or MIT license, at your option.
5// Please see the LICENSE-APACHE or LICENSE-MIT files in this distribution for license details.
6// ------------------------------------------------------------------------------------------------
7
8#[cfg(feature = "copious-debugging")]
9#[macro_export]
10macro_rules! copious_debugging {
11 ($($arg:tt)*) => {{ ::std::eprintln!($($arg)*); }}
12
13}
14
15#[cfg(not(feature = "copious-debugging"))]
16#[macro_export]
17macro_rules! copious_debugging {
18 ($($arg:tt)*) => {};
19}