Merge pull request #7439

0f2b5af Reduced executable size; reduced call sequence to 'allowed' log function (Lee Clagett)
This commit is contained in:
luigi1111 2021-03-29 22:39:31 -04:00
commit 08f6d0e185
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
3 changed files with 34 additions and 17 deletions

View file

@ -41,7 +41,7 @@
#define MAX_LOG_FILES 50
#define MCLOG_TYPE(level, cat, color, type, x) do { \
if (ELPP->vRegistry()->allowed(level, cat)) { \
if (el::Loggers::allowed(level, cat)) { \
el::base::Writer(level, color, __FILE__, __LINE__, ELPP_FUNC, type).construct(cat) << x; \
} \
} while (0)
@ -89,7 +89,7 @@
#define IFLOG(level, cat, color, type, init, x) \
do { \
if (ELPP->vRegistry()->allowed(level, cat)) { \
if (el::Loggers::allowed(level, cat)) { \
init; \
el::base::Writer(level, color, __FILE__, __LINE__, ELPP_FUNC, type).construct(cat) << x; \
} \