mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 13:36:50 -04:00
Isolate JKRHeap operator overloads
Fixes #25 This isolates the JKRHeap operator new/delete overloads. Every single new/delete site in the code has been replaced with a macro. Sadly for new[] and delete[] we have to keep global operators. The global new[] just allocates into malloc() however, and delete[] goes into free() if it's not in a JKRHeap. So that's fine.
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ u8 dBgWSv::Set(cBgD_t* pbgd, u32 param_1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
field_0xc0 = new Vec[pm_bgd->m_v_num];
|
||||
field_0xc0 = JKR_NEW Vec[pm_bgd->m_v_num];
|
||||
return field_0xc0 == NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user