macro_rules! source_location_current {
() => { ... };
}
Expand description
Constructs a SourceLocation
with current source location.
The return type of this macro is Option<SourceLocation>
. Returns None
if
the feature source-location
is not enabled.
ยงExamples
use spdlog::{SourceLocation, source_location_current};
let source_location: Option<SourceLocation> = source_location_current!();