Color Management: restore abort() in cases of error and WITH_ASSERT_ABORT enabled

This commit is contained in:
Sergey Sharybin 2012-09-26 13:21:10 +00:00
parent fae7dd22c7
commit c9d4956f45

@ -35,7 +35,7 @@
#define OCIO_CAPI_IMPLEMENTATION #define OCIO_CAPI_IMPLEMENTATION
#include "ocio_capi.h" #include "ocio_capi.h"
#ifdef NDEBUG #if !defined(WITH_ASSERT_ABORT)
# define OCIO_abort() # define OCIO_abort()
#else #else
# include <stdlib.h> # include <stdlib.h>
@ -53,7 +53,7 @@ static void OCIO_reportError(const char *err)
{ {
std::cerr << "OpenColorIO Error: " << err << std::endl; std::cerr << "OpenColorIO Error: " << err << std::endl;
// OCIO_abort(); OCIO_abort();
} }
static void OCIO_reportException(Exception &exception) static void OCIO_reportException(Exception &exception)