Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / third_party / re2 / util / valgrind.cc
blob46f804b85332ac3b780c07a73cd01d017e3aa49f
1 // Copyright 2009 The RE2 Authors. All Rights Reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 #include "util/util.h"
6 #include "util/valgrind.h"
8 namespace re2 {
10 int RunningOnValgrind() {
11 #ifdef RUNNING_ON_VALGRIND
12 return RUNNING_ON_VALGRIND;
13 #else
14 return 0;
15 #endif
18 } // namespace re2