mirror of https://codeberg.org/topola/topola.git
Add macro to debug graph
This commit is contained in:
parent
0c32ea7e41
commit
409cea61c0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue