Page Menu
Home
Search
Configure Global Search
Log In
Files
F18867
logging.h
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Yasuhiro Fujii (y-fujii)
Nov 13 2013, 4:12 PM
Size
1 KB
Subscribers
None
logging.h
View Options
#pragma once
#include
<cassert>
#include
<string>
#define LOG(x) (assert((x) != FATAL), google::GlogSkeleton())
#define VLOG(x) (assert((x) != FATAL), google::GlogSkeleton())
#define CHECK(x) (assert(x), google::GlogSkeleton())
#define CHECK_EQ(x, y) (assert((x) == (y)), google::GlogSkeleton())
#define CHECK_GE(x, y) (assert((x) >= (y)), google::GlogSkeleton())
#define CHECK_LE(x, y) (assert((x) <= (y)), google::GlogSkeleton())
#define CHECK_GT(x, y) (assert((x) > (y)), google::GlogSkeleton())
#define CHECK_LT(x, y) (assert((x) < (y)), google::GlogSkeleton())
#define DCHECK(x) (assert(x), google::GlogSkeleton())
#define DCHECK_EQ(x, y) (assert((x) == (y)), google::GlogSkeleton())
#define DCHECK_GE(x, y) (assert((x) >= (y)), google::GlogSkeleton())
#define DCHECK_LE(x, y) (assert((x) <= (y)), google::GlogSkeleton())
#define DCHECK_GT(x, y) (assert((x) > (y)), google::GlogSkeleton())
#define DCHECK_LT(x, y) (assert((x) < (y)), google::GlogSkeleton())
enum
{
INFO
,
WARNING
,
ERROR
,
FATAL
};
namespace
google
{
struct
GlogSkeleton
{
template
<
class
T
>
GlogSkeleton
const
&
operator
<<
(
T
const
&
)
const
{
return
*
this
;
}
};
inline
void
InitGoogleLogging
(
char
const
*
)
{
}
inline
std
::
string
SetCommandLineOption
(
char
const
*
,
char
const
*
)
{
return
std
::
string
();
}
}
File Metadata
Details
Mime Type
text/x-c
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b2/58/caba8eee6b8b7ed7fce6c0f555b8
Event Timeline
Log In to Comment