mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-27 17:02:55 -04:00
Fix JUT_ASSERT and several other macros (#2711)
* Fix JUT_ASSERT to be a nested define * Switch names that appear in asserts to be constants instead of defines * Replace `0` in asserts with `NULL` or `FALSE` * Fix fpclassify * Fix ARRAY_SIZE * Use G_CM3D_F_INF * More fixes for fpclassify * Remove FLOAT_LABEL * Remove incorrect FLAG_ON macro * Remove UNK_BSS macro * Silence clangd unused header warning for PCH
This commit is contained in:
@@ -230,7 +230,7 @@ static s32 daBaseNpc_chkPnt(cXyz param_0, dPnt* param_1, u16 param_2, u16 param_
|
||||
|
||||
f32 sp24;
|
||||
if (sp12 == param_2 && param_2 == sp10) {
|
||||
JUT_ASSERT(2288, 0);
|
||||
JUT_ASSERT(2288, FALSE);
|
||||
} else if (sp12 < param_2 && param_2 < sp10) {
|
||||
sp24 = (sp4C - sp64).absXZ();
|
||||
s16 temp_r31 = cM_atan2s(sp4C.x - sp64.x, sp4C.z - sp64.z);
|
||||
@@ -259,7 +259,7 @@ static s32 daBaseNpc_chkPnt(cXyz param_0, dPnt* param_1, u16 param_2, u16 param_
|
||||
sp4C.x = sp70.x + (2.0f * sp24 * cM_ssin(temp_r31_3));
|
||||
sp4C.z = sp70.z + (2.0f * sp24 * cM_scos(temp_r31_3));
|
||||
} else {
|
||||
JUT_ASSERT(2322, 0);
|
||||
JUT_ASSERT(2322, FALSE);
|
||||
}
|
||||
|
||||
f32 sp20;
|
||||
|
||||
Reference in New Issue
Block a user