macro_rules! plot_filename {
($prefix:expr) => { ... };
}Expand description
Generate a filename for a plot: target/plot_output/{file}_line_{line}_{datetime}.png
Creates the necessary directories if they don’t exist.
plot_filename!(Some("prefix")) will prepend prefix_ to the filename.