Assert question

DLearner via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 26 05:13:02 PDT 2016


Suppose a program contains several points that control should not 
get to.
So each such point is blocked by assert(0).
What is the recommended way of identifying which assert has been 
triggered?

Is one allowed anything like 'assert(0,"Crashed at point A");', 
where the message goes to stderr?


More information about the Digitalmars-d-learn mailing list