early work to make python bindings work again with ns-3-time

This commit is contained in:
Mathieu Lacage
2011-04-13 09:08:05 +02:00
parent 3dac7a431e
commit 7ff702d6b1
6 changed files with 8 additions and 10 deletions

View File

@@ -303,7 +303,7 @@ def ns3_module_scan(top_builddir, pygen_file_name, everything_h, cflags):
#'NS3_ASSERT_ENABLE': None,
#'NS3_LOG_ENABLE': None,
},
cflags=('--gccxml-cxxflags %r' % (cflags,))
cflags=('--gccxml-cxxflags %r %s' % (cflags,'-DPYTHON_SCAN'))
)
module_parser.parse_init([everything_h],

View File

@@ -419,12 +419,6 @@ __dummy_function_to_force_template_instantiation_v2 ()
Time t1, t2, t3;
t1 = t2 + t3;
t1 = t2 - t3;
TimeSquare tsq = t2*t3;
Time tsqdiv = tsq/Seconds(1);
Scalar scal = t2/t3;
TimeInvert inv = scal/t3;
t1 = scal*t1;
t1 = t1/scal;
t1 < t2;
t1 <= t2;
t1 == t2;