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

Side by Side Diff: third_party/re2/util/valgrind.cc

Issue 10873029: Migrate WebRequestRedirectByRegExAction to use RE2 and roll RE2 to revision 97:401ab4168e8e (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/re2/util/valgrind.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "util/util.h" 5 #include "util/util.h"
6 #include "util/valgrind.h" 6 #include "util/valgrind.h"
7 7
8 namespace re2 { 8 namespace re2 {
9 9
10 static bool checkValgrind() { 10 int RunningOnValgrind() {
11 #ifdef RUNNING_ON_VALGRIND 11 #ifdef RUNNING_ON_VALGRIND
12 return RUNNING_ON_VALGRIND; 12 return RUNNING_ON_VALGRIND;
13 #else 13 #else
14 » return false; 14 » return 0;
15 #endif 15 #endif
16 } 16 }
17 17
18 static const int valgrind = checkValgrind();
19
20 int RunningOnValgrind() {
21 return valgrind;
22 }
23
24 } // namespace re2 18 } // namespace re2
OLDNEW
« no previous file with comments | « third_party/re2/util/valgrind.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698