New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-10-06 17:39:35 +01:00
parent 1c3dcd37b3
commit 8a664200e5
18 changed files with 6608 additions and 6444 deletions

View File

@@ -22,7 +22,7 @@ else:
os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
## https://launchpad.net/pybindgen/
REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 582)
REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 593)
REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
@@ -251,6 +251,27 @@ __dummy_function_to_force_template_instantiation (Ptr<Object> obj, TypeId typeId
return obj->GetObject<Object> (typeId);
}
static inline void
__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;
t1 != t2;
t1 >= t2;
t1 > t2;
}
}
"""
outfile.close()