summaryrefslogtreecommitdiff
path: root/src/d/d_meter_hakusha.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-09-28 16:11:07 -0400
committerGitHub <noreply@github.com>2025-09-28 13:11:07 -0700
commit9eea9289b1c4316d5856d1cb9602ee463d7de989 (patch)
treedde3385855941d12a306de3ca8fb316338be288b /src/d/d_meter_hakusha.cpp
parentc9a710a939c7bccee7eb16e90ed70c9d3f6c78ad (diff)
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
Diffstat (limited to 'src/d/d_meter_hakusha.cpp')
-rw-r--r--src/d/d_meter_hakusha.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/d/d_meter_hakusha.cpp b/src/d/d_meter_hakusha.cpp
index eec7942a2b..6415691b28 100644
--- a/src/d/d_meter_hakusha.cpp
+++ b/src/d/d_meter_hakusha.cpp
@@ -3,7 +3,7 @@
* UI Epona Dash Spurs
*/
-#include "d/dolzel.h"
+#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_meter_hakusha.h"
#include "JSystem/J2DGraph/J2DGrafContext.h"
@@ -33,14 +33,14 @@ int dMeterHakusha_c::_create() {
for (int i = 0; i < 6; i++) {
mpHakushaPos[i] = new CPaneMgr(field_0x004, haku_tag[i], 0, NULL);
- JUT_ASSERT(0, mpHakushaPos[i] != 0);
+ JUT_ASSERT(0, mpHakushaPos[i] != NULL);
}
mpHakushaParent = new CPaneMgr(field_0x004, 'hakunall', 0, NULL);
- JUT_ASSERT(0, mpHakushaParent != 0);
+ JUT_ASSERT(0, mpHakushaParent != NULL);
mpHakushaScreen = new J2DScreen();
- JUT_ASSERT(0, mpHakushaScreen != 0);
+ JUT_ASSERT(0, mpHakushaScreen != NULL);
bool fg = mpHakushaScreen->setPriority("zelda_game_image_hakusha_parts.blo", 0x20000,
dComIfGp_getMain2DArchive());
@@ -48,10 +48,10 @@ int dMeterHakusha_c::_create() {
dPaneClass_showNullPane(mpHakushaScreen);
mpHakushaOn = new CPaneMgr(mpHakushaScreen, 'haku_n', 2, NULL);
- JUT_ASSERT(0, mpHakushaOn != 0);
+ JUT_ASSERT(0, mpHakushaOn != NULL);
mpHakushaOff = new CPaneMgr(mpHakushaScreen, 'haku_b_n', 2, NULL);
- JUT_ASSERT(0, mpHakushaOff != 0);
+ JUT_ASSERT(0, mpHakushaOff != NULL);
mpHakushaOn->setAlphaRate(0.0f);
mpHakushaOff->setAlphaRate(0.0f);
@@ -69,7 +69,7 @@ int dMeterHakusha_c::_create() {
mHakushaNum = dMeter2Info_getHorseLifeCount();
mpButtonScreen = new J2DScreen();
- JUT_ASSERT(0, mpButtonScreen != 0);
+ JUT_ASSERT(0, mpButtonScreen != NULL);
fg = mpButtonScreen->setPriority("zelda_game_image_hakusha_a_btn.blo", 0x20000,
dComIfGp_getMain2DArchive());
@@ -77,7 +77,7 @@ int dMeterHakusha_c::_create() {
dPaneClass_showNullPane(mpButtonScreen);
mpButtonA = new CPaneMgr(mpButtonScreen, 'abtn_n', 2, NULL);
- JUT_ASSERT(0, mpButtonA != 0);
+ JUT_ASSERT(0, mpButtonA != NULL);
mpButtonA->show();
mpButtonA->setAlphaRate(0.0f);