mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-05 11:33:39 -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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user