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:
LagoLunatic
2025-09-28 16:11:07 -04:00
committed by GitHub
parent 737250d7f5
commit 6ec6fce8cb
1008 changed files with 3172 additions and 3237 deletions
+4 -4
View File
@@ -3,7 +3,7 @@
*
*/
#include "d/dolzel_rel.h"
#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_e_kr.h"
#include "d/actor/d_a_horse.h"
@@ -1881,13 +1881,13 @@ static void ground_angle_set(e_kr_class* i_this) {
unkXyz3.y += 100.0f;
gndChk.SetPos(&unkXyz3);
unkXyz3.y = dComIfG_Bgsp().GroundCross(&gndChk);
if (unkXyz3.y != -1e+09f) {
if (unkXyz3.y != -G_CM3D_F_INF) {
unkVec1.x = unkXyz3.x;
unkVec1.y = unkXyz3.y + 100.0f;
unkVec1.z = unkXyz3.z + unkFloat1;
gndChk.SetPos(&unkVec1);
unkVec1.y = dComIfG_Bgsp().GroundCross(&gndChk);
if (unkVec1.y != -1e+09f) {
if (unkVec1.y != -G_CM3D_F_INF) {
diffY = unkVec1.y - unkXyz3.y;
diffZ = unkVec1.z - unkXyz3.z;
unkShort2 = -cM_atan2s(diffY, diffZ);
@@ -1901,7 +1901,7 @@ static void ground_angle_set(e_kr_class* i_this) {
unkVec1.z = unkXyz3.z;
gndChk.SetPos(&unkVec1);
unkVec1.y = dComIfG_Bgsp().GroundCross(&gndChk);
if (unkVec1.y != -1e+09f) {
if (unkVec1.y != -G_CM3D_F_INF) {
diffY = unkVec1.y - unkXyz3.y;
diffZ = unkVec1.x - unkXyz3.x;
unkShort1 = (s16)cM_atan2s(diffY, diffZ);