Bug 382741. Make cairo asserts non-fatal. May fix tinderbox issues with crashing with new-textframe. r=vlad

This commit is contained in:
roc+@cs.cmu.edu 2007-06-13 15:10:23 -07:00
parent d663b1c653
commit 0a8d95d074

View File

@ -240,6 +240,13 @@ typedef void *cairo_mutex_t;
#endif
#ifndef MOZILLA_CAIRO_NOT_DEFINED
/* Make assertions non-fatal */
#ifndef NDEBUG
#undef assert
#define assert(expr) \
do { if (!(expr)) fprintf(stderr, "Assertion failed at %s:%d: %s\n", \
__FILE__, __LINE__, #expr); } while (0)
#endif
#ifndef INT32_MAX
# ifdef INT_MAX
# define INT32_MAX INT_MAX