https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 6898dcc02673c2f7d268723e113b733377253b87 authored by ffxbld on 14 July 2014, 21:47:45 UTC
Added FIREFOX_31_0_RELEASE FIREFOX_31_0_BUILD1 tag(s) for changeset b0893d225559. DONTBUILD CLOSED TREE a=release
Tip revision: 6898dcc
nonfatal-assertions.patch
diff -r b79d47dad1ea gfx/cairo/cairo/src/cairoint.h
--- a/gfx/cairo/cairo/src/cairoint.h	Fri Jun 08 18:09:53 2007 -0700
+++ b/gfx/cairo/cairo/src/cairoint.h	Fri Jun 29 09:18:02 2007 +0200
@@ -159,6 +159,13 @@ CAIRO_BEGIN_DECLS
 
 #ifndef M_PI
 #define M_PI 3.14159265358979323846
+#endif
+
+#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
 
 #undef  ARRAY_LENGTH
back to top