root/third_party/re2/util/valgrind.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. RunningOnValgrind

// Copyright 2009 The RE2 Authors.  All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#include "util/util.h"
#include "util/valgrind.h"

namespace re2 {

int RunningOnValgrind() {
#ifdef RUNNING_ON_VALGRIND
        return RUNNING_ON_VALGRIND;
#else
        return 0;
#endif
}

}  // namespace re2

/* [<][>][^][v][top][bottom][index][help] */