Skip to content

Commit

Permalink
Merge pull request #539 from red031000/master
Browse files Browse the repository at this point in the history
cleanup error handling
  • Loading branch information
PikalaxALT authored Oct 5, 2023
2 parents 3e31e62 + 0c9ee2e commit d888ce4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions arm9/src/error_handling.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
#include "error_message_reset.h"
#include "unk_02031734.h"

void GF_AssertFail(void) {
if (!sub_02031810()) {
return;
}


void GF_AssertFail(void)
{
if (sub_02031810())
{
if (OS_GetProcMode() != OS_PROCMODE_IRQ)
{
PrintErrorMessageAndReset();
}
if (OS_GetProcMode() != OS_PROCMODE_IRQ) {
PrintErrorMessageAndReset();
}
}

0 comments on commit d888ce4

Please sign in to comment.