mfbt/double-conversion/use-mozilla-assertions.patch

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
     2 --- a/mfbt/double-conversion/utils.h
     3 +++ b/mfbt/double-conversion/utils.h
     4 @@ -31,15 +31,15 @@
     5  #include <stdlib.h>
     6  #include <string.h>
     8 -#include <assert.h>
     9 +#include "mozilla/Assertions.h"
    10  #ifndef ASSERT
    11 -#define ASSERT(condition)      (assert(condition))
    12 +#define ASSERT(condition)      MOZ_ASSERT(condition)
    13  #endif
    14  #ifndef UNIMPLEMENTED
    15 -#define UNIMPLEMENTED() (abort())
    16 +#define UNIMPLEMENTED() MOZ_CRASH()
    17  #endif
    18  #ifndef UNREACHABLE
    19 -#define UNREACHABLE()   (abort())
    20 +#define UNREACHABLE()   MOZ_CRASH()
    21  #endif
    23  // Double operations detection based on target architecture.

mercurial