Skip to content

Commit

Permalink
Bug 716544 - Include assert.h from logging.h. r=cjones
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Mar 13, 2012
1 parent 55ffdbc commit d7eff8b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ipc/chromium/src/base/logging.h
Expand Up @@ -5,6 +5,7 @@
#ifndef BASE_LOGGING_H_
#define BASE_LOGGING_H_

#include <assert.h>
#include <string>
#include <cstring>

Expand All @@ -14,8 +15,6 @@
// Replace the Chromium logging code with NSPR-based logging code and
// some C++ wrappers to emulate std::ostream

#define ERROR 0

namespace mozilla {

enum LogSeverity {
Expand Down Expand Up @@ -100,8 +99,8 @@ const mozilla::EmptyLog& operator <<(const mozilla::EmptyLog& log, const T&)
#define DCHECK(condition) while (false && (condition)) mozilla::EmptyLog()
#endif

#define LOG_ASSERT(cond) CHECK(ERROR)
#define DLOG_ASSERT(cond) DCHECK(ERROR)
#define LOG_ASSERT(cond) CHECK(0)
#define DLOG_ASSERT(cond) DCHECK(0)

#define NOTREACHED() LOG(ERROR)
#define NOTIMPLEMENTED() LOG(ERROR)
Expand Down

0 comments on commit d7eff8b

Please sign in to comment.