How can I assert() without using abort()?

后端 未结 6 1048
失恋的感觉
失恋的感觉 2020-12-08 20:06

If I use assert() and the assertion fails then assert() will call abort(), ending the running program abruptly. I can\'t afford that

6条回答
  •  悲哀的现实
    2020-12-08 20:40

    If you want to throw a character string with information about the assertion: http://xll8.codeplex.com/SourceControl/latest#xll/ensure.h

提交回复
热议问题