fully qualify class name to use macro outside of ns3 namespace.
--- a/src/core/log.h Wed Aug 13 10:08:03 2008 -0700
+++ b/src/core/log.h Wed Aug 13 10:11:41 2008 -0700
@@ -269,19 +269,19 @@
* Component:Function (aNumber, anotherNumber)
* \endcode
*/
-#define NS_LOG_FUNCTION(parameters) \
- do \
- { \
- if (g_log.IsEnabled (ns3::LOG_FUNCTION)) \
- { \
- NS_LOG_APPEND_TIME_PREFIX; \
- NS_LOG_APPEND_CONTEXT; \
- std::clog << g_log.Name () << ":" \
- << __FUNCTION__ << "("; \
- ParameterLogger (std::clog) << parameters; \
- std::clog << ")" << std::endl; \
- } \
- } \
+#define NS_LOG_FUNCTION(parameters) \
+ do \
+ { \
+ if (g_log.IsEnabled (ns3::LOG_FUNCTION)) \
+ { \
+ NS_LOG_APPEND_TIME_PREFIX; \
+ NS_LOG_APPEND_CONTEXT; \
+ std::clog << g_log.Name () << ":" \
+ << __FUNCTION__ << "("; \
+ ns3::ParameterLogger (std::clog) << parameters; \
+ std::clog << ")" << std::endl; \
+ } \
+ } \
while (false)