[nostalgia] Fix oxPanic parameter order

This commit is contained in:
2020-02-16 02:06:05 -06:00
parent da3c9107db
commit 1269ee7fad
5 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ ox::Error shutdownGfx() {
case 3:
return REG_BG3CNT;
default:
oxPanic("Looking up non-existent register", OxError(1));
oxPanic(OxError(1), "Looking up non-existent register");
return REG_BG0CNT;
}
}
+3 -3
View File
@@ -94,7 +94,7 @@ static HeapSegment *findSegmentFor(std::size_t sz) {
return s;
}
}
oxPanic("malloc: could not find segment", OxError(1));
oxPanic(OxError(1), "malloc: could not find segment");
return nullptr;
}
@@ -118,7 +118,7 @@ void free(void *ptr) {
} else if (p.segment) {
p.segment->inUse = false;
} else {
oxPanic("Bad heap free", OxError(1));
oxPanic(OxError(1), "Bad heap free");
}
}
@@ -160,4 +160,4 @@ void operator delete[](void *ptr, unsigned long int) {
core::free(ptr);
}
#endif
#endif