fully qualify class name to use macro outside of ns3 namespace.
1.1 --- a/src/core/log.h Wed Aug 13 10:08:03 2008 -0700
1.2 +++ b/src/core/log.h Wed Aug 13 10:11:41 2008 -0700
1.3 @@ -269,19 +269,19 @@
1.4 * Component:Function (aNumber, anotherNumber)
1.5 * \endcode
1.6 */
1.7 -#define NS_LOG_FUNCTION(parameters) \
1.8 - do \
1.9 - { \
1.10 - if (g_log.IsEnabled (ns3::LOG_FUNCTION)) \
1.11 - { \
1.12 - NS_LOG_APPEND_TIME_PREFIX; \
1.13 - NS_LOG_APPEND_CONTEXT; \
1.14 - std::clog << g_log.Name () << ":" \
1.15 - << __FUNCTION__ << "("; \
1.16 - ParameterLogger (std::clog) << parameters; \
1.17 - std::clog << ")" << std::endl; \
1.18 - } \
1.19 - } \
1.20 +#define NS_LOG_FUNCTION(parameters) \
1.21 + do \
1.22 + { \
1.23 + if (g_log.IsEnabled (ns3::LOG_FUNCTION)) \
1.24 + { \
1.25 + NS_LOG_APPEND_TIME_PREFIX; \
1.26 + NS_LOG_APPEND_CONTEXT; \
1.27 + std::clog << g_log.Name () << ":" \
1.28 + << __FUNCTION__ << "("; \
1.29 + ns3::ParameterLogger (std::clog) << parameters; \
1.30 + std::clog << ")" << std::endl; \
1.31 + } \
1.32 + } \
1.33 while (false)
1.34
1.35