mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-06 06:10:21 +00:00
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>
This commit is contained in:
parent
0b8252cfe9
commit
98aef8988a
44 changed files with 148 additions and 301 deletions
|
@ -196,7 +196,7 @@ void DemoEffect_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
osSyncPrintf(VT_FGCOL(CYAN) " bank_ID = %d\n" VT_RST, objectIndex);
|
||||
|
||||
if (objectIndex < 0) {
|
||||
__assert("0", "../z_demo_effect.c", 723);
|
||||
ASSERT(0, "0", "../z_demo_effect.c", 723);
|
||||
} else {
|
||||
this->initObjectBankIndex = objectIndex;
|
||||
}
|
||||
|
@ -506,7 +506,7 @@ void DemoEffect_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||
break;
|
||||
|
||||
default:
|
||||
__assert("0", "../z_demo_effect.c", 1062);
|
||||
ASSERT(0, "0", "../z_demo_effect.c", 1062);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -683,7 +683,7 @@ void DemoEffect_InitTimeWarp(DemoEffect* this, GlobalContext* globalCtx) {
|
|||
s32 effectType = (this->actor.params & 0x00FF);
|
||||
|
||||
if (!SkelCurve_Init(globalCtx, &this->skelCurve, &gTimeWarpSkel, &gTimeWarpAnim)) {
|
||||
__assert("0", "../z_demo_effect.c", 1283);
|
||||
ASSERT(0, "0", "../z_demo_effect.c", 1283);
|
||||
}
|
||||
|
||||
if (effectType == DEMO_EFFECT_TIMEWARP_TIMEBLOCK_LARGE || effectType == DEMO_EFFECT_TIMEWARP_TIMEBLOCK_SMALL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue