What should I call a function that completes execution, the condition is true? Deny? Is there a common name?
anti_assert(1=1, errmsg);
It’s easier for me to go this way, because then you can make a macro in c / C ++, for example:
#define anti_assert(expression) anti_assert(expresstion, #expression)
And then in the log I have a piece of code that caused the problem.
rsk82 source
share