gfx/cairo/nonfatal-assertions.patch

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 diff -r b79d47dad1ea gfx/cairo/cairo/src/cairoint.h
     2 --- a/gfx/cairo/cairo/src/cairoint.h	Fri Jun 08 18:09:53 2007 -0700
     3 +++ b/gfx/cairo/cairo/src/cairoint.h	Fri Jun 29 09:18:02 2007 +0200
     4 @@ -159,6 +159,13 @@ CAIRO_BEGIN_DECLS
     6  #ifndef M_PI
     7  #define M_PI 3.14159265358979323846
     8 +#endif
     9 +
    10 +#ifndef NDEBUG
    11 +#undef assert
    12 +#define assert(expr) \
    13 +    do { if (!(expr)) fprintf(stderr, "Assertion failed at %s:%d: %s\n", \
    14 +          __FILE__, __LINE__, #expr); } while (0)
    15  #endif
    17  #undef  ARRAY_LENGTH

mercurial