1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mod interrupt;
mod product;
mod reload;

pub use interrupt::Interrupt;
pub use product::{Outcome, Product, ProductSet, ServerRestart};
pub use reload::{ReloadSignal, ReloadType};

#[macro_export]
macro_rules! location {
    () => {
        $crate::command::Location {
            file: file!().to_string(),
            line: line!(),
            column: column!(),
        }
    };
}

pub struct Location {
    pub file: &'static str,
    pub line: u32,
    pub column: u32,
    pub modules: &'static str,
}