OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stddef.h> |
| 6 |
5 #include "base/memory_debug.h" | 7 #include "base/memory_debug.h" |
6 | 8 |
7 #ifdef PURIFY | 9 #ifdef PURIFY |
8 // this #define is used to prevent people from directly using pure.h | 10 // this #define is used to prevent people from directly using pure.h |
9 // instead of memory_debug.h | 11 // instead of memory_debug.h |
10 #define PURIFY_PRIVATE_INCLUDE | 12 #define PURIFY_PRIVATE_INCLUDE |
11 #include "base/third_party/purify/pure.h" | 13 #include "base/third_party/purify/pure.h" |
12 #endif | 14 #endif |
13 | 15 |
14 namespace base { | 16 namespace base { |
(...skipping 30 matching lines...) Expand all Loading... |
45 #endif | 47 #endif |
46 } | 48 } |
47 | 49 |
48 void MemoryDebug::MarkAsInitialized(void* addr, size_t size) { | 50 void MemoryDebug::MarkAsInitialized(void* addr, size_t size) { |
49 #ifdef PURIFY | 51 #ifdef PURIFY |
50 PurifyMarkAsInitialized(addr, size); | 52 PurifyMarkAsInitialized(addr, size); |
51 #endif | 53 #endif |
52 } | 54 } |
53 | 55 |
54 } // namespace base | 56 } // namespace base |
OLD | NEW |