Skip to content

Commit

Permalink
Parsing errors even with release. (#1886)
Browse files Browse the repository at this point in the history
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.

Co-authored-by: HenrikVDestia <[email protected]>
  • Loading branch information
HenrikAkseliValve and HenrikVDestia authored Jan 2, 2025
1 parent 166e45e commit 56f1b7c
Showing 1 changed file with 109 additions and 52 deletions.
Loading

0 comments on commit 56f1b7c

Please sign in to comment.