mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 11:54:39 +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
|
@ -777,10 +777,7 @@ Gfx* Gfx_SetFog(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 n, s32 f) {
|
|||
if (f == n) {
|
||||
f++;
|
||||
}
|
||||
|
||||
if (n == f) {
|
||||
__assert("n != f", "../z_rcp.c", 1155);
|
||||
}
|
||||
ASSERT(n != f, "n != f", "../z_rcp.c", 1155);
|
||||
|
||||
gDPSetFogColor(gfx++, r, g, b, a);
|
||||
|
||||
|
@ -801,10 +798,7 @@ Gfx* Gfx_SetFogWithSync(Gfx* gfx, s32 r, s32 g, s32 b, s32 a, s32 n, s32 f) {
|
|||
if (f == n) {
|
||||
f++;
|
||||
}
|
||||
|
||||
if (n == f) {
|
||||
__assert("n != f", "../z_rcp.c", 1187);
|
||||
}
|
||||
ASSERT(n != f, "n != f", "../z_rcp.c", 1187);
|
||||
|
||||
gDPPipeSync(gfx++);
|
||||
gDPSetFogColor(gfx++, r, g, b, a);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue