Skip to main content

gm_lib/
lib.rs

1#[macro_use]
2// pub mod actions;
3pub mod alchemy;
4pub mod disk;
5pub mod error;
6pub mod network;
7pub mod tui;
8pub mod utils;
9pub use error::{Error, Result};
10
11#[macro_export]
12macro_rules! gm_log {
13    ($($arg:tt)*) => {{
14        use std::fs::OpenOptions;
15        use std::io::Write;
16
17        let mut file = OpenOptions::new()
18            .append(true)
19            .create(true)
20            .open("gm.log")
21            .unwrap();
22
23        writeln!(file, $($arg)*).unwrap();
24    }};
25}