Replace verify() with ensure() with auto src location.

Expression ensure(x) returns x.
Using comma operator removed.
This commit is contained in:
Nekotekina 2020-12-09 10:47:45 +03:00
parent 38745e5782
commit e055d16b2c
121 changed files with 693 additions and 690 deletions

View file

@ -76,7 +76,7 @@ std::string VertexProgramDecompiler::GetDST(bool is_sca)
if (!ret.empty())
{
// Double assignment. Only possible for vector ops
verify(HERE), !is_sca;
ensure(!is_sca);
ret += " = ";
}
@ -507,7 +507,7 @@ std::string VertexProgramDecompiler::Decompile()
if (m_prog.entry != m_prog.base_address)
{
jump_position = find_jump_lvl(m_prog.entry - m_prog.base_address);
verify(HERE), jump_position != UINT32_MAX;
ensure(jump_position != UINT32_MAX);
}
AddCode(fmt::format("int jump_position = %u;", jump_position));