Remove HERE macro

Some cleanup.
Add location to some functions.
This commit is contained in:
Nekotekina 2020-12-09 18:04:52 +03:00
parent d25c401aec
commit 36c8654fb8
130 changed files with 969 additions and 889 deletions

View file

@ -339,7 +339,7 @@ namespace cpu_counter
if (slot >= std::size(s_cpu_list))
{
sys_log.fatal("Index out of bounds (%u)." HERE, slot);
sys_log.fatal("Index out of bounds (%u).", slot);
return;
}
@ -771,7 +771,7 @@ void cpu_thread::notify()
}
else
{
fmt::throw_exception("Invalid cpu_thread type" HERE);
fmt::throw_exception("Invalid cpu_thread type");
}
}
@ -788,7 +788,7 @@ void cpu_thread::abort()
}
else
{
fmt::throw_exception("Invalid cpu_thread type" HERE);
fmt::throw_exception("Invalid cpu_thread type");
}
}
@ -805,7 +805,7 @@ std::string cpu_thread::get_name() const
}
else
{
fmt::throw_exception("Invalid cpu_thread type" HERE);
fmt::throw_exception("Invalid cpu_thread type");
}
}
@ -1057,7 +1057,7 @@ void cpu_thread::flush_profilers() noexcept
{
if (!g_fxo->get<cpu_profiler>())
{
profiler.fatal("cpu_thread::flush_profilers() has been called incorrectly." HERE);
profiler.fatal("cpu_thread::flush_profilers() has been called incorrectly.");
return;
}