mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Replace verify() with ensure() with auto src location.
Expression ensure(x) returns x. Using comma operator removed.
This commit is contained in:
parent
38745e5782
commit
e055d16b2c
121 changed files with 693 additions and 690 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue