ams: revamp assertion system

This commit is contained in:
Michael Scire 2020-02-22 23:05:14 -08:00
parent 9572fb2ce3
commit 40400aee1f
168 changed files with 1014 additions and 696 deletions

View file

@ -25,10 +25,10 @@ namespace ams::hid {
/* Helper. */
void InitializeHid() {
R_ASSERT(smInitialize());
R_ABORT_UNLESS(smInitialize());
ON_SCOPE_EXIT { smExit(); };
{
R_ASSERT(hidInitialize());
R_ABORT_UNLESS(hidInitialize());
}
}