Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: base/dynamic_annotations.cc

Issue 195091: s/NDEBUG/NVALGRIND/g in base/dynamic_annotations.* to allow... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/dynamic_annotations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/dynamic_annotations.cc
===================================================================
--- base/dynamic_annotations.cc (revision 26572)
+++ base/dynamic_annotations.cc (working copy)
@@ -3,9 +3,8 @@
// found in the LICENSE file.
#include "base/dynamic_annotations.h"
-#include "base/third_party/valgrind/valgrind.h"
-#ifndef NDEBUG
+#ifndef NVALGRIND
// Each function is empty and called (via a macro) only in debug mode.
// The arguments are captured by dynamic tools at runtime.
@@ -56,7 +55,7 @@
extern "C" void AnnotateIgnoreWritesEnd(const char *file, int line) {}
extern "C" void AnnotateNoOp(const char *file, int line,
const volatile void *arg) {}
-#endif // NDEBUG
+#endif // NVALGRIND
// When running under valgrind, a non-zero value will be returned.
extern "C" int RunningOnValgrind() {
Property changes on: base/dynamic_annotations.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « base/dynamic_annotations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698