Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* |
michael@0 | 2 | ****************************************************************************** |
michael@0 | 3 | * |
michael@0 | 4 | * Copyright (C) 2002-2011, International Business Machines |
michael@0 | 5 | * Corporation and others. All Rights Reserved. |
michael@0 | 6 | * |
michael@0 | 7 | ****************************************************************************** |
michael@0 | 8 | * |
michael@0 | 9 | * File uassert.h |
michael@0 | 10 | * |
michael@0 | 11 | * Contains U_ASSERT macro |
michael@0 | 12 | * |
michael@0 | 13 | * By default, U_ASSERT just wraps the C library assert macro. |
michael@0 | 14 | * By changing the definition here, the assert behavior for ICU can be changed |
michael@0 | 15 | * without affecting other non-ICU uses of the C library assert(). |
michael@0 | 16 | * |
michael@0 | 17 | ****************************************************************************** |
michael@0 | 18 | */ |
michael@0 | 19 | |
michael@0 | 20 | #ifndef U_ASSERT_H |
michael@0 | 21 | #define U_ASSERT_H |
michael@0 | 22 | /* utypes.h is included to get the proper define for uint8_t */ |
michael@0 | 23 | #include "unicode/utypes.h" |
michael@0 | 24 | #if U_DEBUG |
michael@0 | 25 | # include <assert.h> |
michael@0 | 26 | # define U_ASSERT(exp) assert(exp) |
michael@0 | 27 | #else |
michael@0 | 28 | # define U_ASSERT(exp) |
michael@0 | 29 | #endif |
michael@0 | 30 | #endif |
michael@0 | 31 | |
michael@0 | 32 |