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 @@
* UI Arrows
*/
#include "d/dolzel.h"
#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_meter_haihai.h"
#include "JSystem/J2DGraph/J2DAnmLoader.h"
@@ -26,7 +26,7 @@ dMeterHaihai_c::~dMeterHaihai_c() {
/* 8020AF6C-8020B0F4 2058AC 0188+00 1/0 0/0 0/0 .text _create__14dMeterHaihai_cFv */
int dMeterHaihai_c::_create() {
mpHaihaiScreen = new J2DScreen();
JUT_ASSERT(0, mpHaihaiScreen != 0);
JUT_ASSERT(0, mpHaihaiScreen != NULL);
bool fg =
mpHaihaiScreen->setPriority("zelda_hihi_cursor.blo", 0x20000, dComIfGp_getMain2DArchive());
@@ -34,7 +34,7 @@ int dMeterHaihai_c::_create() {
dPaneClass_showNullPane(mpHaihaiScreen);
mpParent = new CPaneMgr(mpHaihaiScreen, 'n_all', 2, NULL);
JUT_ASSERT(0, mpParent != 0);
JUT_ASSERT(0, mpParent != NULL);
OSInitFastCast();
mpCursorBck = (J2DAnmTransformKey*)J2DAnmLoaderDataBase::load(