Comp1927asserts

Never give code with asserts in it to other people – it’s a “user controlled crash”.

Assert prints: executable!name file.c!name function!name failedAssertCondition
e.g.

program: program.c:5: main: Assertion `a != 1' failed.

Error handlers are preferable. They catch exceptions, are information and gently terminate the program. (They should print to stderr – which by default redirects to stdout, but needn’t).