diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-09-28 16:11:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-28 13:11:07 -0700 |
| commit | 9eea9289b1c4316d5856d1cb9602ee463d7de989 (patch) | |
| tree | dde3385855941d12a306de3ca8fb316338be288b /src/JSystem/JAudio2/JASBasicWaveBank.cpp | |
| parent | c9a710a939c7bccee7eb16e90ed70c9d3f6c78ad (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/JSystem/JAudio2/JASBasicWaveBank.cpp')
| -rw-r--r-- | src/JSystem/JAudio2/JASBasicWaveBank.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/JSystem/JAudio2/JASBasicWaveBank.cpp b/src/JSystem/JAudio2/JASBasicWaveBank.cpp index 63c36f7aa6..749a5e4bd1 100644 --- a/src/JSystem/JAudio2/JASBasicWaveBank.cpp +++ b/src/JSystem/JAudio2/JASBasicWaveBank.cpp @@ -40,7 +40,7 @@ void JASBasicWaveBank::setGroupCount(u32 param_0, JKRHeap* param_1) { delete[] mWaveGroupArray; mGroupCount = param_0; mWaveGroupArray = new(param_1, 0) TWaveGroup[param_0]; - JUT_ASSERT(62, mWaveGroupArray != 0); + JUT_ASSERT(62, mWaveGroupArray != NULL); for (int i = 0; i < mGroupCount; i++) { mWaveGroupArray[i].mBank = this; } @@ -51,7 +51,7 @@ void JASBasicWaveBank::setGroupCount(u32 param_0, JKRHeap* param_1) { void JASBasicWaveBank::setWaveTableSize(u32 param_0, JKRHeap* param_1) { delete[] mWaveTable; mWaveTable = new(param_1, 0) TWaveHandle[param_0]; - JUT_ASSERT(92, mWaveTable != 0); + JUT_ASSERT(92, mWaveTable != NULL); mHandleCount = param_0; } @@ -129,7 +129,7 @@ void JASBasicWaveBank::TWaveGroup::setWaveCount(u32 param_0, JKRHeap* param_1) { delete[] mCtrlWaveArray; mWaveCount = param_0; mCtrlWaveArray = new(param_1, 0) TGroupWaveInfo[param_0]; - JUT_ASSERT(255, mCtrlWaveArray != 0); + JUT_ASSERT(255, mCtrlWaveArray != NULL); } /* 80298B04-80298B2C 293444 0028+00 1/0 0/0 0/0 .text |
