mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-12 15:31:57 +00:00
refactor: expand AUTO_VAR macro
This commit is contained in:
@@ -1028,7 +1028,7 @@ SIZE_T WINAPI XMemSize(PVOID pAddress, DWORD dwAllocAttributes) {
|
||||
|
||||
void DumpMem() {
|
||||
int totalLeak = 0;
|
||||
for (AUTO_VAR(it, allocCounts.begin()); it != allocCounts.end(); it++) {
|
||||
for (auto it = allocCounts.begin(); it != allocCounts.end(); it++) {
|
||||
if (it->second > 0) {
|
||||
app.DebugPrintf("%d %d %d %d\n", (it->first >> 26) & 0x3f,
|
||||
it->first & 0x03ffffff, it->second,
|
||||
@@ -1070,7 +1070,7 @@ void MemPixStuff() {
|
||||
|
||||
int totals[MAX_SECT] = {0};
|
||||
|
||||
for (AUTO_VAR(it, allocCounts.begin()); it != allocCounts.end(); it++) {
|
||||
for (auto it = allocCounts.begin(); it != allocCounts.end(); it++) {
|
||||
if (it->second > 0) {
|
||||
int sect = (it->first >> 26) & 0x3f;
|
||||
int bytes = it->first & 0x03ffffff;
|
||||
|
||||
Reference in New Issue
Block a user