From 167e3321e1b129c1ef02d6fc046faab546f104e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Tue, 8 Mar 2022 20:57:55 +0100 Subject: [PATCH] put tracy in a seperate scope --- common/base/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/base/src/lib.rs b/common/base/src/lib.rs index f221ba6503..ae099f308a 100644 --- a/common/base/src/lib.rs +++ b/common/base/src/lib.rs @@ -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