Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing errors even with release. #1886

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

HenrikAkseliValve
Copy link
Contributor

Adds two macros to the CppParser/Parser.cpp for custom assert. They print out a message regardless is release or debug enabled. Abort is only called with debug.

Macro assertm just prints out the message if the condition is false. Macro assertml also prints out the given source location to indicate where parsing fails.

Macro assertml is not used often but might be good to be used more.

Also, I removed an assert that seems pointless as if check before it handles it already.

@HenrikAkseliValve
Copy link
Contributor Author

Dammit Ubuntu CI ***** up...

@HenrikVDestia HenrikVDestia force-pushed the ParsingErrors branch 2 times, most recently from 1dfeb54 to 7de25de Compare January 1, 2025 18:25
@HenrikAkseliValve
Copy link
Contributor Author

There were spelling mistakes on the release config.

Adds two macros to the CppParser/Parser.cpp for custom assert. They print out a message regardless is release or debug enabled. Abort is only called with debug.

Macro `assertm` just prints out the message if the condition is false. Macro `assertml` also prints out the given source location to indicate where parsing fails.

Macro `assertml` is not used often but might be good to be used more.

Also, I removed an assert that seems pointless as if check before it handles it already.
@HenrikAkseliValve
Copy link
Contributor Author

Ubuntu had problems with auto.

@HenrikVDestia HenrikVDestia force-pushed the ParsingErrors branch 2 times, most recently from 31ebc7c to b4eae99 Compare January 2, 2025 14:12
@tritao tritao merged commit 56f1b7c into mono:main Jan 2, 2025
7 of 9 checks passed
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.

3 participants