mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-09 23:25:16 -08:00
Fix scoping in source_location.cpp
This commit is contained in:
@@ -33,10 +33,10 @@ namespace lws
|
|||||||
{
|
{
|
||||||
std::ostream& operator<<(std::ostream& os, const source_location loc)
|
std::ostream& operator<<(std::ostream& os, const source_location loc)
|
||||||
{
|
{
|
||||||
char const* const just_name = loc.file_name() ?
|
|
||||||
std::strrchr(loc.file_name(), '/') : nullptr;
|
|
||||||
if (loc.line())
|
if (loc.line())
|
||||||
{
|
{
|
||||||
|
char const* const just_name = loc.file_name() ?
|
||||||
|
std::strrchr(loc.file_name(), '/') : nullptr;
|
||||||
os << (just_name ? just_name + 1 : loc.file_name()) << ':' << loc.line();
|
os << (just_name ? just_name + 1 : loc.file_name()) << ':' << loc.line();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user