Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parsing errors even with release. (#1886)
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