fixed_typemap.hpp: reduce indirection

Backported some changes from auto_typemap.hpp
Implemented methods init(), reset(), clear()
Disabled recreation support.
This commit is contained in:
Nekotekina 2021-02-03 21:14:31 +03:00
parent 8a9320c4ef
commit d788b12a8e
20 changed files with 229 additions and 181 deletions

View file

@ -429,7 +429,7 @@ void cpu_thread::operator()()
}
}
while (!g_fxo->get<cpu_profiler>())
while (!g_fxo->is_init<cpu_profiler>())
{
if (Emu.IsStopped())
{
@ -1151,7 +1151,7 @@ void cpu_thread::stop_all() noexcept
void cpu_thread::flush_profilers() noexcept
{
if (!g_fxo->get<cpu_profiler>())
if (!g_fxo->is_init<cpu_profiler>())
{
profiler.fatal("cpu_thread::flush_profilers() has been called incorrectly.");
return;