refactor: Simplify unconditional asserts from DEBUG_ASSERTCRASH to DEBUG_CRASH#2343
Merged
xezon merged 6 commits intoTheSuperHackers:mainfrom Feb 23, 2026
Merged
Conversation
|
| Filename | Overview |
|---|---|
| Core/GameEngine/Source/Common/INI/INI.cpp | Replaced 7 unconditional assertions with DEBUG_CRASH for error handling |
| Core/GameEngine/Source/GameClient/GameText.cpp | Replaced 12 unconditional assertions with DEBUG_CRASH for error handling |
| Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp | Replaced 15 unconditional assertions with DEBUG_CRASH for validation checks |
| GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp | Replaced 15 unconditional assertions with DEBUG_CRASH for validation checks |
| Generals/Code/GameEngine/Source/GameClient/GUI/GameWindowTransitionsStyles.cpp | Replaced 15 unconditional assertions with DEBUG_CRASH |
| GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowTransitionsStyles.cpp | Replaced 15 unconditional assertions with DEBUG_CRASH |
Last reviewed commit: cd5a821
485769a to
314e068
Compare
xezon
reviewed
Feb 23, 2026
xezon
left a comment
There was a problem hiding this comment.
Nice. While at it, also fix the DEBUG_ASSERTCRASH( 0, ...)
Author
Ah, I hadn't noticed those. I just changed them. |
CookieLandProjects
pushed a commit
to CookieLandProjects/CLP_AI
that referenced
this pull request
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR changes occurrences such as
DEBUG_ASSERTCRASH(FALSE, (""))toDEBUG_CRASH(("")).I used regex search and replace in VS22 with
from:
DEBUG_ASSERTCRASH( *)\(( *)FALSE *, *(case insensitive)to:
DEBUG_CRASH$1($2Edit:
DEBUG_ASSERTCRASH( 0, ...)is now also included.