bug 269: revert parts of 9e763021e045 and add comments to avoid getting these again.
1.1 --- a/src/simulator/simulator.cc Fri Aug 01 23:15:00 2008 +0100
1.2 +++ b/src/simulator/simulator.cc Sun Aug 03 09:14:07 2008 -0700
1.3 @@ -67,8 +67,9 @@
1.4 SimulatorImpl *
1.5 Simulator::GetImpl (void)
1.6 {
1.7 - NS_LOG_FUNCTION_NOARGS ();
1.8 -
1.9 + /* Please, don't include any calls to logging macros in this function
1.10 + * or pay the price, that is, stack explosions.
1.11 + */
1.12 if (m_impl == 0)
1.13 {
1.14 ObjectFactory factory;
1.15 @@ -90,7 +91,6 @@
1.16 //
1.17 LogSetTimePrinter (&TimePrinter);
1.18 }
1.19 - NS_LOG_LOGIC ("priv " << m_impl);
1.20 return PeekPointer (m_impl);
1.21 }
1.22
1.23 @@ -162,7 +162,9 @@
1.24 Time
1.25 Simulator::Now (void)
1.26 {
1.27 - NS_LOG_FUNCTION_NOARGS ();
1.28 + /* Please, don't include any calls to logging macros in this function
1.29 + * or pay the price, that is, stack explosions.
1.30 + */
1.31 return GetImpl ()->Now ();
1.32 }
1.33