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
+3 -3
View File
@@ -3,7 +3,7 @@
* @brief Enemy - Mini Freezard
*/
#include "d/dolzel_rel.h"
#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_e_fz.h"
#include "f_op/f_op_actor_enemy.h"
@@ -377,7 +377,7 @@ bool daE_FZ_c::way_gake_check() {
gnd_chk.SetPos(&field_0x6e8);
field_0x6e8.y = dComIfG_Bgsp().GroundCross(&gnd_chk);
if (field_0x6e8.y == -1e+09f) {
if (field_0x6e8.y == -G_CM3D_F_INF) {
field_0x6e8.y = current.pos.y;
return true;
} else if (current.pos.y - field_0x6e8.y > 100.0f) {
@@ -782,7 +782,7 @@ void daE_FZ_c::action() {
gnd_chk.SetPos(&pos);
pos.y = dComIfG_Bgsp().GroundCross(&gnd_chk);
if (pos.y != -1e+09f) {
if (pos.y != -G_CM3D_F_INF) {
field_0x710 = 0;
if (current.pos.y - pos.y > 400.0f && field_0x713 == 0) {