Skip to content

Commit

Permalink
Parsing errors even with release.
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.
  • Loading branch information
HenrikVDestia committed Jan 1, 2025
1 parent 166e45e commit 1dfeb54
Showing 1 changed file with 108 additions and 52 deletions.
Loading

0 comments on commit 1dfeb54

Please sign in to comment.