Workaround gccxml bug scanning Seconds(0) as default value
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sun, 06 Mar 2011 13:10:03 +0000
changeset 6868 5001084c970a
parent 6867 020d52c50a45
child 6869 691d93df56ae
Workaround gccxml bug scanning Seconds(0) as default value
bindings/python/ns3modulescan.py
--- a/bindings/python/ns3modulescan.py	Sat Mar 05 13:31:26 2011 -0800
+++ b/bindings/python/ns3modulescan.py	Sun Mar 06 13:10:03 2011 +0000
@@ -157,6 +157,8 @@
                 continue
             if "ns3::MilliSeconds( )" == arg.default_value:
                 arg.default_value = "ns3::MilliSeconds(0)"
+            if "ns3::Seconds( )" == arg.default_value:
+                arg.default_value = "ns3::Seconds(0)"
 
     ## classes
     if isinstance(pygccxml_definition, class_t):