mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-31 17:01:36 -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:
@@ -1,4 +1,4 @@
|
||||
#include "d/dolzel.h"
|
||||
#include "d/dolzel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/d_msg_scrn_light.h"
|
||||
#include "JSystem/J2DGraph/J2DAnmLoader.h"
|
||||
@@ -131,7 +131,7 @@ dMsgScrnLight_c::dMsgScrnLight_c(u8 i_colorType, u8 param_1) {
|
||||
g_MsgScrnLight_HIO_c.updateColor(i_colorType);
|
||||
|
||||
mpScreen = new J2DScreen();
|
||||
JUT_ASSERT(0, mpScreen != 0);
|
||||
JUT_ASSERT(0, mpScreen != NULL);
|
||||
bool fg = mpScreen->setPriority("zelda_message_window_text_light.blo", 0x20000,
|
||||
dComIfGp_getMain2DArchive());
|
||||
JUT_ASSERT(0, fg != false);
|
||||
@@ -148,7 +148,7 @@ dMsgScrnLight_c::dMsgScrnLight_c(u8 i_colorType, u8 param_1) {
|
||||
mBpkFrame = 0.0f;
|
||||
|
||||
mpParent_c = new CPaneMgr(mpScreen, 'moya00', 0, NULL);
|
||||
JUT_ASSERT(0, mpParent_c != 0);
|
||||
JUT_ASSERT(0, mpParent_c != NULL);
|
||||
|
||||
mpParent_c->getPanePtr()->setAnimation(mpBck);
|
||||
mpParent_c->getPanePtr()->setAnimation(mpBpk);
|
||||
|
||||
Reference in New Issue
Block a user