put tracy in a seperate scope

This commit is contained in:
Marcel Märtens 2022-03-08 20:57:55 +01:00
parent a411db17bf
commit 167e3321e1

View File

@ -21,11 +21,11 @@ macro_rules! plot {
#[cfg(feature = "tracy")] #[cfg(feature = "tracy")]
#[macro_export] #[macro_export]
macro_rules! plot { macro_rules! plot {
($name:expr, $value:expr) => { ($name:expr, $value:expr) => {{
use $crate::tracy_client::{create_plot, Plot}; use $crate::tracy_client::{create_plot, Plot};
static PLOT: Plot = create_plot!($name); static PLOT: Plot = create_plot!($name);
PLOT.point($value); PLOT.point($value);
}; }};
} }
// Panic in debug or tests, warn in release // Panic in debug or tests, warn in release