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

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial