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
|
|
@ -34,7 +34,7 @@ extern void libio_sys_config_init()
|
|||
if (cfg->init_ctr++ == 0)
|
||||
{
|
||||
// Belongs to "_cfg_evt_hndlr" thread (8k stack)
|
||||
cfg->stack_addr = verify(HERE, vm::alloc(0x2000, vm::stack, 4096));
|
||||
cfg->stack_addr = (ensure(vm::alloc(0x2000, vm::stack, 4096)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ extern void libio_sys_config_end()
|
|||
|
||||
if (cfg->init_ctr-- == 1)
|
||||
{
|
||||
verify(HERE), vm::dealloc(std::exchange(cfg->stack_addr, 0), vm::stack);
|
||||
ensure(vm::dealloc(std::exchange(cfg->stack_addr, 0), vm::stack));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue