Bug 1165515 - Part 2: Add MOZ_LOG_TEST. r=froydnj

This commit is contained in:
Eric Rahm 2015-06-01 14:30:59 -07:00
parent ab696ade93
commit aac96eb3c5

View File

@ -16,5 +16,10 @@
#define MOZ_LOG PR_LOG
// Tests if a module has enabled the given log level.
// NB: _module can be null.
#define MOZ_LOG_TEST(_module, _level) \
((_module) && (_module)->level >= (_level))
#endif // mozilla_logging_h