early work to make python bindings work again with ns-3-time
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#ifndef INT64X64_128_H
|
||||
#include "ns3/core-config.h"
|
||||
#if !defined(INT64X64_128_H) && defined (INT64X64_USE_128) && !defined(PYTHON_SCAN)
|
||||
#define INT64X64_128_H
|
||||
|
||||
#include "ns3/core-config.h"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#ifndef INT64X64_CAIRO_H
|
||||
#include "ns3/core-config.h"
|
||||
#if !defined(INT64X64_CAIRO_H) && defined (INT64X64_USE_CAIRO) && !defined(PYTHON_SCAN)
|
||||
#define INT64X64_CAIRO_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#ifndef INT64X64_DOUBLE_H
|
||||
#include "ns3/core-config.h"
|
||||
#if !defined(INT64X64_DOUBLE_H) && (defined (INT64X64_USE_DOUBLE) || defined(PYTHON_SCAN))
|
||||
#define INT64X64_DOUBLE_H
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -211,6 +211,7 @@ def build(bld):
|
||||
'model/attribute-accessor-helper.h',
|
||||
'model/boolean.h',
|
||||
'model/int64x64.h',
|
||||
'model/int64x64-double.h',
|
||||
'model/integer.h',
|
||||
'model/uinteger.h',
|
||||
'model/double.h',
|
||||
|
||||
Reference in New Issue
Block a user