diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-04-29 14:39:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 14:39:46 -0400 |
| commit | 98aef8988adbcb5960e8001e70141d0d1a9034bd (patch) | |
| tree | a0443e402cb6fa06b0f964aad6d38bf185fb2a9b /src/code/z_elf_message.c | |
| parent | 0b8252cfe99651b3174ac8652ba133781e8e2105 (diff) | |
`assert` macro OK (#755)
* create assert macro and replace a bunch of __assert
Signed-off-by: angie <angheloalf95@gmail.com>
* Another bunch of assert
Signed-off-by: angie <angheloalf95@gmail.com>
* more assert
Signed-off-by: angie <angheloalf95@gmail.com>
* assert(false)
Signed-off-by: angie <angheloalf95@gmail.com>
* last assert used in matching code
Signed-off-by: angie <angheloalf95@gmail.com>
* the non-matchings
Signed-off-by: angie <angheloalf95@gmail.com>
* typo
Signed-off-by: angie <angheloalf95@gmail.com>
* format
Signed-off-by: angie <angheloalf95@gmail.com>
* change macro to uppercase
Signed-off-by: angie <angheloalf95@gmail.com>
* Apply suggestions from code review
Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
* Change ASSERT(false) to ASSERT(0)
Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
Diffstat (limited to 'src/code/z_elf_message.c')
| -rw-r--r-- | src/code/z_elf_message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_elf_message.c b/src/code/z_elf_message.c index 90a27368e..481732170 100644 --- a/src/code/z_elf_message.c +++ b/src/code/z_elf_message.c @@ -47,7 +47,7 @@ u32 ElfMessage_CheckCondition(ElfMessage* msg) { // "Unplanned conditions" LOG_STRING("企画外 条件", "../z_elf_message.c", 156); - __assert("0", "../z_elf_message.c", 157); + ASSERT(0, "0", "../z_elf_message.c", 157); return false; } @@ -131,7 +131,7 @@ u16 ElfMessage_GetTextFromMsgs(ElfMessage* msg) { default: // "Unplanned conditions" LOG_STRING("企画外 条件", "../z_elf_message.c", 281); - __assert("0", "../z_elf_message.c", 282); + ASSERT(0, "0", "../z_elf_message.c", 282); } msg++; } |
