Replace verify() with ensure() with auto src location.

Expression ensure(x) returns x.
Using comma operator removed.
This commit is contained in:
Nekotekina 2020-12-09 10:47:45 +03:00
parent 38745e5782
commit e055d16b2c
121 changed files with 693 additions and 690 deletions

View file

@ -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));
}
}