macro_rules! debug_location {
() => { ... };
($func_name:expr) => { ... };
}Expand description
Macro to capture the current source location for debug info.
ยงExample
use fastapi_core::{debug_location, error::DebugInfo};
fn my_handler() -> DebugInfo {
debug_location!()
}