Skip to content

Add more detailed assert option - #1153

Merged
mrimer merged 3 commits into
CaravelGames:masterfrom
Hypexion:assert-tweaks
May 12, 2026
Merged

Add more detailed assert option#1153
mrimer merged 3 commits into
CaravelGames:masterfrom
Hypexion:assert-tweaks

Conversation

@Hypexion

@Hypexion Hypexion commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Adds a new kind of assert, ASSERT_DETAIL. This allows an extra piece of information (currently a raw string or unsigned int) to be spliced into an assert message for more detailed reporting.

As a live example, I've changed several asserts in DbPackedVars to use this new assert type.

@mrimer

mrimer commented May 11, 2026

Copy link
Copy Markdown
Member

What is the purpose of this change?

@Hypexion Hypexion changed the title Change AssertErr to take a std::string for description Add more detailed assert option May 12, 2026
@Hypexion

Copy link
Copy Markdown
Collaborator Author

What is the purpose of this change?

Had a think about the goal, which is to allow for the possibility of more detailed asserts. This led me to do a completely different solution.

@mrimer
mrimer merged commit 2bc77ba into CaravelGames:master May 12, 2026
1 check passed
@Hypexion
Hypexion deleted the assert-tweaks branch May 13, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants