mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +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
|
|
@ -53,13 +53,13 @@ vertex_program_utils::vertex_program_metadata vertex_program_utils::analyse_vert
|
|||
|
||||
while (true)
|
||||
{
|
||||
verify(HERE), current_instruction < 512;
|
||||
ensure(current_instruction < 512);
|
||||
|
||||
if (result.instruction_mask[current_instruction])
|
||||
{
|
||||
if (!fast_exit)
|
||||
{
|
||||
if (!has_printed_error)
|
||||
if (!has_printed_error)
|
||||
{
|
||||
// This can be harmless if a dangling RET was encountered before
|
||||
rsx_log.error("vp_analyser: Possible infinite loop detected");
|
||||
|
|
@ -198,7 +198,7 @@ vertex_program_utils::vertex_program_metadata vertex_program_utils::analyse_vert
|
|||
|
||||
if (!has_branch_instruction)
|
||||
{
|
||||
verify(HERE), instruction_range.first == entry;
|
||||
ensure(instruction_range.first == entry);
|
||||
std::memcpy(dst_prog.data.data(), data + (instruction_range.first * 4), result.ucode_length);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue