Skip to content

Commit 56f1b7c

Browse files
HenrikAkseliValveHenrikVDestia
andauthoredJan 2, 2025··
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 <henrik.valve@destia.fi>
1 parent 166e45e commit 56f1b7c

File tree

1 file changed

+109
-52
lines changed

1 file changed

+109
-52
lines changed
 

0 commit comments

Comments
 (0)
Please sign in to comment.