Make JUT_ASSERT macro more accurate

(COND) == 0 and !(COND) both only match sometimes, but (void)((COND) || ...) seems to work all the time.
This commit is contained in:
LagoLunatic
2024-03-09 17:05:34 -05:00
parent 24b8501d33
commit 64dd688ddd
3 changed files with 5 additions and 17 deletions
+2 -2
View File
@@ -303,8 +303,8 @@ void dBgS_Acch::CrrPos(dBgS& i_bgs) {
SetWaterIn();
}
JUT_ASSERT_FLOAT(718, m_wtr.GetHeight() >= ground.y);
JUT_ASSERT_FLOAT(719, m_wtr.GetHeight() <= top);
JUT_ASSERT(718, m_wtr.GetHeight() >= ground.y);
JUT_ASSERT(719, m_wtr.GetHeight() <= top);
}
}
}