mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 23:59:49 -04:00
ams: revamp assertion system
This commit is contained in:
parent
9572fb2ce3
commit
40400aee1f
168 changed files with 1014 additions and 696 deletions
|
@ -62,7 +62,7 @@ namespace ams::sm {
|
|||
}
|
||||
|
||||
Result Initialize() {
|
||||
AMS_ASSERT(!this->has_initialized);
|
||||
AMS_ABORT_UNLESS(!this->has_initialized);
|
||||
|
||||
sm::DoWithSession([&]() {
|
||||
this->result = Initializer();
|
||||
|
@ -73,7 +73,7 @@ namespace ams::sm {
|
|||
}
|
||||
|
||||
void Finalize() {
|
||||
AMS_ASSERT(this->has_initialized);
|
||||
AMS_ABORT_UNLESS(this->has_initialized);
|
||||
Finalizer();
|
||||
this->has_initialized = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue