mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
ams: avoid UB infinite loops
This commit is contained in:
parent
874208b44a
commit
51b5c3d87d
9 changed files with 17 additions and 10 deletions
|
@ -33,7 +33,7 @@ namespace ams::result::impl {
|
|||
|
||||
/* TODO: ams::fatal:: */
|
||||
fatalThrow(result.GetValue());
|
||||
while (true) { /* ... */ }
|
||||
AMS_INFINITE_LOOP();
|
||||
}
|
||||
|
||||
NORETURN WEAK_SYMBOL void OnResultAbort(Result result) {
|
||||
|
@ -50,7 +50,7 @@ namespace ams::result::impl {
|
|||
|
||||
/* TODO: ams::fatal:: */
|
||||
fatalThrow(result.GetValue());
|
||||
while (true) { /* ... */ }
|
||||
AMS_INFINITE_LOOP();
|
||||
}
|
||||
|
||||
NORETURN WEAK_SYMBOL void OnResultAssertion(Result result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue