Sha256: 2653da491ec5c395e8fc9b94936b338005193184f6da328f5c0b06beacfa118b

Contents?: true

Size: 1.21 KB

Versions: 18

Compression:

Stored size: 1.21 KB

Contents

// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef BASE_LOG_SEVERITY_H_
#define BASE_LOG_SEVERITY_H_

#include "base/port.h"
#include "base/commandlineflags.h"

// Variables of type LogSeverity are widely taken to lie in the range
// [0, NUM_SEVERITIES-1].  Be careful to preserve this assumption if
// you ever need to change their values or add a new severity.
typedef int LogSeverity;

const int INFO = 0, WARNING = 1, ERROR = 2, FATAL = 3, NUM_SEVERITIES = 4;

// DFATAL is FATAL in debug mode, ERROR in normal mode
#ifdef NDEBUG
#define DFATAL_LEVEL ERROR
#else
#define DFATAL_LEVEL FATAL
#endif

extern const char* const LogSeverityNames[NUM_SEVERITIES];

// Some flags needed for VLOG and RAW_VLOG
DECLARE_int32(v);
DECLARE_bool(silent_init);

// NDEBUG usage helpers related to (RAW_)DCHECK:
//
// DEBUG_MODE is for small !NDEBUG uses like
//   if (DEBUG_MODE) foo.CheckThatFoo();
// instead of substantially more verbose
//   #ifndef NDEBUG
//     foo.CheckThatFoo();
//   #endif
//
#ifdef NDEBUG
enum { DEBUG_MODE = 0 };
#else
enum { DEBUG_MODE = 1 };
#endif

#endif  // BASE_LOG_SEVERITY_H_

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
cld-0.13.0 ext/cld/base/log_severity.h
language_detection-0.1.1 ext/cld/base/log_severity.h
cld-0.12.0 ext/cld/base/log_severity.h
language_detection-0.1.0 ext/cld/base/log_severity.h
cld-0.11.0 ext/cld/base/log_severity.h
cld-0.10.0 ext/cld/base/log_severity.h
cld-0.8.0 ext/cld/base/log_severity.h
cld-fixed-0.7.1 ext/cld/base/log_severity.h
cld-0.7.0 ext/cld/base/log_severity.h
language_detection-0.0.2 ext/cld/base/log_severity.h
language_detection-0.0.1 ext/cld/base/log_severity.h
cld-0.6.0 ext/cld/base/log_severity.h
cld-0.5.0 ext/cld/base/log_severity.h
krukid-cld-0.4.0 base/log_severity.h
cld-0.4.0 base/log_severity.h
cld-0.3.0 base/log_severity.h
cld-0.2.0 base/log_severity.h
cld-0.1.0 base/log_severity.h