From 409cea61c055d75f3f3f5fac7d2d62061169cd1b Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Mon, 31 Jul 2023 15:44:18 +0200 Subject: [PATCH] Add macro to debug graph --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index 09810a7..47122e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,12 @@ extern crate sdl2; +macro_rules! dbg_dot { + ($graph:expr) => { + use petgraph::dot::Dot; + println!("{:?}", Dot::new(&$graph)); + } +} + #[macro_use] mod graph; mod layout; mod rules;