macro_rules! location {
() => { ... };
(context: $context:expr) => { ... };
(function: $function:expr) => { ... };
(context: $context:expr, function: $function:expr) => { ... };
(function: $function:expr, context: $context:expr) => { ... };
}Expand description
Macro to create a location at the current source position
This macro provides several forms:
location!()- Basic location with file, line, columnlocation!(context: "description")- Location with context descriptionlocation!(function: "fn_name")- Location with function namelocation!(context: "desc", function: "fn_name")- Location with both