mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 716544 - Include assert.h from logging.h. r=cjones
This commit is contained in:
parent
245ca066a4
commit
65cef76ab4
@ -5,6 +5,7 @@
|
||||
#ifndef BASE_LOGGING_H_
|
||||
#define BASE_LOGGING_H_
|
||||
|
||||
#include <assert.h>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
@ -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 {
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user