YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/src/yb/gutil/logging-inl.h
Line
Count
Source (jump to first uncovered line)
1
// Copyright 2012 Google Inc.
2
//
3
// Licensed to the Apache Software Foundation (ASF) under one
4
// or more contributor license agreements.  See the NOTICE file
5
// distributed with this work for additional information
6
// regarding copyright ownership.  The ASF licenses this file
7
// to you under the Apache License, Version 2.0 (the
8
// "License"); you may not use this file except in compliance
9
// with the License.  You may obtain a copy of the License at
10
//
11
//   http://www.apache.org/licenses/LICENSE-2.0
12
//
13
// Unless required by applicable law or agreed to in writing,
14
// software distributed under the License is distributed on an
15
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
// KIND, either express or implied.  See the License for the
17
// specific language governing permissions and limitations
18
// under the License.
19
//
20
// The following only applies to changes made to this file as part of YugaByte development.
21
//
22
// Portions Copyright (c) YugaByte, Inc.
23
//
24
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
25
// in compliance with the License.  You may obtain a copy of the License at
26
//
27
// http://www.apache.org/licenses/LICENSE-2.0
28
//
29
// Unless required by applicable law or agreed to in writing, software distributed under the License
30
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
31
// or implied.  See the License for the specific language governing permissions and limitations
32
// under the License.
33
//
34
// All rights reserved.
35
//
36
// Additional constants from logging.h and its dependencies which are
37
// not exported by glog.
38
39
#ifndef _LOGGING_IN_H_
40
#define _LOGGING_IN_H_
41
42
// DFATAL is FATAL in debug mode, ERROR in normal mode
43
#ifdef NDEBUG
44
#define DFATAL_LEVEL ERROR
45
#else
46
0
#define DFATAL_LEVEL FATAL
47
#endif
48
49
// NDEBUG usage helpers related to (RAW_)DCHECK:
50
//
51
// DEBUG_MODE is for small !NDEBUG uses like
52
//   if (DEBUG_MODE) foo.CheckThatFoo();
53
// instead of substantially more verbose
54
//   #ifndef NDEBUG
55
//     foo.CheckThatFoo();
56
//   #endif
57
//
58
#ifdef NDEBUG
59
const bool DEBUG_MODE = false;
60
#else
61
const bool DEBUG_MODE = true;
62
#endif
63
64
#endif  // _LOGGING_IN_H_