EXCEPTION macro removed

fmt::throw_exception<> implemented
::narrow improved
Minor fixes
This commit is contained in:
Nekotekina 2016-08-08 19:01:06 +03:00
parent 46735d6b3d
commit a7e808b35b
198 changed files with 3025 additions and 2956 deletions

View file

@ -12,7 +12,7 @@ void spu_recompiler_base::enter(SPUThread& spu)
{
if (spu.pc >= 0x40000 || spu.pc % 4)
{
throw fmt::exception("Invalid PC: 0x%05x", spu.pc);
fmt::throw_exception("Invalid PC: 0x%05x", spu.pc);
}
// Get SPU LS pointer
@ -37,7 +37,7 @@ void spu_recompiler_base::enter(SPUThread& spu)
spu.spu_rec->compile(*func);
if (!func->compiled) throw std::runtime_error("Compilation failed" HERE);
if (!func->compiled) fmt::throw_exception("Compilation failed" HERE);
}
const u32 res = func->compiled(&spu, _ls);
@ -61,7 +61,7 @@ void spu_recompiler_base::enter(SPUThread& spu)
{
if (res & 0x8000000)
{
throw std::logic_error("Invalid interrupt status set" HERE);
fmt::throw_exception("Invalid interrupt status set (0x%x)" HERE, res);
}
spu.set_interrupt_status(true);