mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +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
|
|
@ -92,7 +92,7 @@ s16 __sys_look_ctype_table(s32 ch)
|
|||
{
|
||||
sysPrxForUser.trace("__sys_look_ctype_table(ch=%d)", ch);
|
||||
|
||||
verify("__sys_look_ctype_table" HERE), ch >= -1 && ch <= 127;
|
||||
ensure(ch >= -1 && ch <= 127); // "__sys_look_ctype_table"
|
||||
|
||||
return s_ctype_table[ch + 1];
|
||||
}
|
||||
|
|
@ -101,7 +101,7 @@ s32 _sys_tolower(s32 ch)
|
|||
{
|
||||
sysPrxForUser.trace("_sys_tolower(ch=%d)", ch);
|
||||
|
||||
verify("_sys_tolower" HERE), ch >= -1 && ch <= 127;
|
||||
ensure(ch >= -1 && ch <= 127); // "_sys_tolower"
|
||||
|
||||
return s_ctype_table[ch + 1] & 1 ? ch + 0x20 : ch;
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ s32 _sys_toupper(s32 ch)
|
|||
{
|
||||
sysPrxForUser.trace("_sys_toupper(ch=%d)", ch);
|
||||
|
||||
verify("_sys_toupper" HERE), ch >= -1 && ch <= 127;
|
||||
ensure(ch >= -1 && ch <= 127); // "_sys_toupper"
|
||||
|
||||
return s_ctype_table[ch + 1] & 2 ? ch - 0x20 : ch;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue