What's the difference between CHECK and LOG_ASSERT?

133 views
Skip to first unread message

Martin Martin

unread,
Jan 14, 2015, 12:19:31 PM1/14/15
to googl...@googlegroups.com
CHECK and LOG_ASSERT have the same definition.  CHECK has lots of variants, e.g. CHECK_GT and CHECK_STRCASENE, whereas LOG_ASSERT does not.  CHECK is mentioned in the documentation, whereas LOG_ASSERT is only mentioned in the comments in the header file logging.h, it's not mentioned here: https://google-glog.googlecode.com/svn/trunk/doc/glog.html

Should I use CHECK and ignore LOG_ASSERT?  Why have LOG_ASSERT at all if it's not documented and redundant?

Thanks,
Martin
Reply all
Reply to author
Forward
0 new messages