mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1331495 - Move operator<< overloads for mozilla::Logger inside namespace mozilla. r=froydnj
MozReview-Commit-ID: LqAx0zXVkgc --HG-- extra : rebase_source : df18a96013158d238d505c5791ce176948987e83
This commit is contained in:
parent
c57de18781
commit
cc3459a0d4
@ -61,7 +61,6 @@ Logger::printf(const char* fmt, ...)
|
||||
}
|
||||
|
||||
LazyLogModule Logger::gChromiumPRLog("chromium");
|
||||
} // namespace mozilla
|
||||
|
||||
mozilla::Logger&
|
||||
operator<<(mozilla::Logger& log, const char* s)
|
||||
@ -97,3 +96,5 @@ operator<<(mozilla::Logger& log, void* p)
|
||||
log.printf("%p", p);
|
||||
return log;
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
@ -76,8 +76,6 @@ struct EmptyLog
|
||||
{
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
mozilla::Logger& operator<<(mozilla::Logger& log, const char* s);
|
||||
mozilla::Logger& operator<<(mozilla::Logger& log, const std::string& s);
|
||||
mozilla::Logger& operator<<(mozilla::Logger& log, int i);
|
||||
@ -90,6 +88,8 @@ const mozilla::EmptyLog& operator <<(const mozilla::EmptyLog& log, const T&)
|
||||
return log;
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#ifdef NO_CHROMIUM_LOGGING
|
||||
#define CHROMIUM_LOG(info) std::stringstream()
|
||||
#define LOG_IF(info, condition) if (!(condition)) std::stringstream()
|
||||
|
Loading…
Reference in New Issue
Block a user