mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
put tracy in a seperate scope
This commit is contained in:
parent
a411db17bf
commit
167e3321e1
@ -21,11 +21,11 @@ macro_rules! plot {
|
||||
#[cfg(feature = "tracy")]
|
||||
#[macro_export]
|
||||
macro_rules! plot {
|
||||
($name:expr, $value:expr) => {
|
||||
($name:expr, $value:expr) => {{
|
||||
use $crate::tracy_client::{create_plot, Plot};
|
||||
static PLOT: Plot = create_plot!($name);
|
||||
PLOT.point($value);
|
||||
};
|
||||
}};
|
||||
}
|
||||
|
||||
// Panic in debug or tests, warn in release
|
||||
|
Loading…
Reference in New Issue
Block a user