Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions
logging.h File Reference
#include <sstream>
#include "macros.h"

Go to the source code of this file.

Classes

class  base::LogMessageVoidify
 
class  base::LogMessage
 

Namespaces

namespace  base
 

Macros

#define BASE_LOG_STREAM()    ::base::LogMessage(__FILE__, __LINE__, nullptr, false).stream()
 
#define BASE_LAZY_STREAM(stream, condition)    !(condition) ? (void)0 : ::base::LogMessageVoidify() & (stream)
 
#define BASE_EAT_STREAM_PARAMETERS(ignored)
 
#define BASE_LOG()   BASE_LAZY_STREAM(BASE_LOG_STREAM(), true)
 
#define BASE_CHECK(condition)
 
#define BASE_DLOG()   BASE_LOG()
 
#define BASE_DCHECK(condition)   BASE_CHECK(condition)
 
#define BASE_UNREACHABLE()
 

Functions

void base::KillProcess ()
 

Macro Definition Documentation

◆ BASE_CHECK

#define BASE_CHECK (   condition)
Value:
::base::LogMessage(__FILE__, __LINE__, #condition, true).stream(), \
!(condition))
#define BASE_LAZY_STREAM(stream, condition)
Definition: logging.h:45

Definition at line 56 of file logging.h.

◆ BASE_DCHECK

#define BASE_DCHECK (   condition)    BASE_CHECK(condition)

Definition at line 63 of file logging.h.

◆ BASE_DLOG

#define BASE_DLOG ( )    BASE_LOG()

Definition at line 62 of file logging.h.

◆ BASE_EAT_STREAM_PARAMETERS

#define BASE_EAT_STREAM_PARAMETERS (   ignored)
Value:
true || (ignored) \
? (void)0 \
::base::LogMessage(0, 0, nullptr, !(ignored)).stream()

Definition at line 48 of file logging.h.

◆ BASE_LAZY_STREAM

#define BASE_LAZY_STREAM (   stream,
  condition 
)     !(condition) ? (void)0 : ::base::LogMessageVoidify() & (stream)

Definition at line 45 of file logging.h.

◆ BASE_LOG

#define BASE_LOG ( )    BASE_LAZY_STREAM(BASE_LOG_STREAM(), true)

Definition at line 54 of file logging.h.

◆ BASE_LOG_STREAM

#define BASE_LOG_STREAM ( )     ::base::LogMessage(__FILE__, __LINE__, nullptr, false).stream()

Definition at line 42 of file logging.h.

◆ BASE_UNREACHABLE

#define BASE_UNREACHABLE ( )
Value:
{ \
BASE_LOG() << "Reached unreachable code."; \
}
void KillProcess()
Definition: logging.cc:220

Definition at line 69 of file logging.h.