abort() if the condition specified is not true. The following code illustrates how to use it: void some_routine(Image *inImage) { CEL_ASSERT(inImage); ... }
_CRT_ASSERT report type. And the first call to PixelLiveSystem::create() initializes the output of debugging messages using _CrtSetReportMode and _CrtSetReportFile functions. The following table illustrates the configuration: | Report Type | Report Mode |
|---|---|
_CRT_WARN | _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG |
_CRT_ERROR | _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_WNDW |
_CRT_ASSERT | _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_WNDW |
And all the messages are written to stderr. You can also explicitly change this behavior by calling _CrtSetReportMode and _CrtSetReportFile.