mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +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
|
|
@ -207,7 +207,7 @@ struct lv2_file::file_view : fs::file_base
|
|||
const u64 old_pos = m_file->file.pos();
|
||||
const u64 new_pos = m_file->file.seek(m_off + m_pos);
|
||||
const u64 result = m_file->file.read(buffer, size);
|
||||
verify(HERE), old_pos == m_file->file.seek(old_pos);
|
||||
ensure(old_pos == m_file->file.seek(old_pos));
|
||||
|
||||
m_pos += result;
|
||||
return result;
|
||||
|
|
@ -1306,7 +1306,7 @@ error_code sys_fs_fcntl(ppu_thread& ppu, u32 fd, u32 op, vm::ptr<void> _arg, u32
|
|||
? file->op_read(arg->buf, arg->size)
|
||||
: file->op_write(arg->buf, arg->size);
|
||||
|
||||
verify(HERE), old_pos == file->file.seek(old_pos);
|
||||
ensure(old_pos == file->file.seek(old_pos));
|
||||
|
||||
arg->out_code = CELL_OK;
|
||||
return CELL_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue