mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
Remove gsl::finally only use
This commit is contained in:
parent
0d629743ca
commit
191675bf31
@ -839,7 +839,7 @@ void ppu_thread::fast_call(u32 addr, u32 rtoc)
|
||||
return fmt::format("%s [0x%08x]", thread_ctrl::get_name(), _this->cia);
|
||||
};
|
||||
|
||||
auto at_ret = gsl::finally([&]()
|
||||
auto at_ret = [&]()
|
||||
{
|
||||
if (std::uncaught_exceptions())
|
||||
{
|
||||
@ -866,10 +866,20 @@ void ppu_thread::fast_call(u32 addr, u32 rtoc)
|
||||
current_function = old_func;
|
||||
g_tls_log_prefix = old_fmt;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
try
|
||||
{
|
||||
exec_task();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
at_ret();
|
||||
throw;
|
||||
}
|
||||
|
||||
at_ret();
|
||||
}
|
||||
|
||||
u32 ppu_thread::stack_push(u32 size, u32 align_v)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user