Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FiltedLog( ...)
- if (logDetail)
- MP_LOG(LOG_INFO, __VA_ARGS__);
- #define MP_LOG(level,fmt,...)
- BOOAT::LOG("MP", level, fmt, ##__VA_ARGS__)
- #define LOG(tag,level,fmt,...)
- Log::log(tag, level, "%s: " fmt, __PRETTY_FUNCTION__, ##__VA_ARGS__)
- int main ()
- {
- FiltedLog ( "abc", 1, 2);
- }
- #line 1 "test.cpp"
- int main ()
- {
- if (logDetail) BOOAT::Log::log("MP", LOG_INFO, "%s: " "abc", 1, 2, __PRETTY_FUNCTION__ );;
- }
- if (logDetail) BOOAT::Log::log("MP", LOG_INFO, "%s: " "abc", __PRETTY_FUNCTION__, 1, 2);;
- #define INDIRECT_EXPAND(m, args) m args
- #define FiltedLog( ...)
- if (logDetail)
- INDIRECT_EXPAND(MP_LOG, (LOG_INFO, __VA_ARGS__));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement