mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-10 04:34:54 +00:00
replace __debugbreak with assert, fix full build
This commit is contained in:
@@ -91,7 +91,7 @@ ConsoleSaveFileOriginal::ConsoleSaveFileOriginal(
|
||||
// pages committed should always be zero at this point.
|
||||
if (pagesCommitted != 0) {
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
__debugbreak();
|
||||
assert(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ ConsoleSaveFileOriginal::ConsoleSaveFileOriginal(
|
||||
if (pvRet == nullptr) {
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
// Out of physical memory
|
||||
__debugbreak();
|
||||
assert(0);
|
||||
#endif
|
||||
}
|
||||
pagesCommitted = pagesRequired;
|
||||
@@ -162,7 +162,7 @@ ConsoleSaveFileOriginal::ConsoleSaveFileOriginal(
|
||||
COMMIT_ALLOCATION, PAGE_READWRITE);
|
||||
if (pvRet == nullptr) {
|
||||
// Out of physical memory
|
||||
__debugbreak();
|
||||
assert(0);
|
||||
}
|
||||
pagesCommitted = pagesRequired;
|
||||
}
|
||||
@@ -438,7 +438,7 @@ void ConsoleSaveFileOriginal::MoveDataBeyond(
|
||||
COMMIT_ALLOCATION, PAGE_READWRITE);
|
||||
if (pvRet == nullptr) {
|
||||
// Out of physical memory
|
||||
__debugbreak();
|
||||
assert(0);
|
||||
}
|
||||
pagesCommitted = pagesRequired;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user