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 c9a710a939
commit 9eea9289b1
1008 changed files with 3172 additions and 3237 deletions
+7 -7
View File
@@ -2,7 +2,7 @@
// d_msg_string_base
//
#include "d/dolzel.h"
#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_msg_string_base.h"
#include "d/d_msg_class.h"
@@ -16,17 +16,17 @@ dMsgStringBase_c::dMsgStringBase_c() {
field_0x20 = 0;
getResource();
mpResCont = new JMessage::TResourceContainer();
JUT_ASSERT(33, mpResCont != 0);
JUT_ASSERT(33, mpResCont != NULL);
mpCtrl = new jmessage_string_tControl();
JUT_ASSERT(36, mpCtrl != 0);
JUT_ASSERT(36, mpCtrl != NULL);
mpRefer = new jmessage_string_tReference();
JUT_ASSERT(39, mpRefer != 0);
JUT_ASSERT(39, mpRefer != NULL);
mpSeqProc = new jmessage_string_tSequenceProcessor(mpRefer, mpCtrl);
JUT_ASSERT(42, mpSeqProc != 0);
JUT_ASSERT(42, mpSeqProc != NULL);
mpRenProc = new jmessage_string_tRenderingProcessor(mpRefer);
JUT_ASSERT(45, mpRenProc != 0);
JUT_ASSERT(45, mpRenProc != NULL);
mpParse = new JMessage::TParse(mpResCont);
JUT_ASSERT(48, mpParse != 0);
JUT_ASSERT(48, mpParse != NULL);
mpRefer->setResourceContainer(mpResCont);
mpCtrl->setSequenceProcessor(mpSeqProc);
mpCtrl->setRenderingProcessor(mpRenProc);