laforge
/
openbts-osmo
Archived
1
0
Fork 0

common libs: Implemented ISLOGGING() macro to test whether given loglevel is going to be logged.

(cherry picked from commit d5e1c75147ef6d4bd6699c57250cc7b4def2e92b)
This commit is contained in:
Alexander Chemeris 2010-11-04 18:43:40 +03:00
parent a2ce7ae628
commit 6423e707df
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@
#define OBJLOG(wLevel) \
if (gLoggingLevel(__FILE__)>=Log::LOG_##wLevel) _LOG(wLevel) << "obj: " << this << ' '
#define ISLOGGING(wLevel) \
(gLoggingLevel(__FILE__)>=Log::LOG_##wLevel)
#define LOG_ASSERT(x) { if (!(x)) LOG(ALARM) << "assertion " #x " failed"; } assert(x);