[pygccxml-commit] SF.net SVN: pygccxml: [889] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2007-01-31 08:41:50
|
Revision: 889
http://svn.sourceforge.net/pygccxml/?rev=889&view=rev
Author: roman_yakovenko
Date: 2007-01-31 00:41:50 -0800 (Wed, 31 Jan 2007)
Log Message:
-----------
adding exposing of copy constructors
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/module_creator/creator.py
pyplusplus_dev/unittests/vector3_tester.py
Modified: pyplusplus_dev/pyplusplus/module_creator/creator.py
===================================================================
--- pyplusplus_dev/pyplusplus/module_creator/creator.py 2007-01-30 18:03:43 UTC (rev 888)
+++ pyplusplus_dev/pyplusplus/module_creator/creator.py 2007-01-31 08:41:50 UTC (rev 889)
@@ -449,8 +449,6 @@
self.curr_code_creator.adopt_creator( static_method )
def visit_constructor( self ):
- if self.curr_decl.is_copy_constructor:
- return
self.__types_db.update( self.curr_decl )
self.__dependencies_manager.add_exported( self.curr_decl )
if self.curr_decl.allow_implicit_conversion:
Modified: pyplusplus_dev/unittests/vector3_tester.py
===================================================================
--- pyplusplus_dev/unittests/vector3_tester.py 2007-01-30 18:03:43 UTC (rev 888)
+++ pyplusplus_dev/unittests/vector3_tester.py 2007-01-31 08:41:50 UTC (rev 889)
@@ -31,6 +31,8 @@
def run_tests( self, module):
v3 = module.Vector3()
self.failUnless( v3.ZERO == v3.do_smth() )
+ #test copy constructor
+ self.failUnless( module.Vector3(v3.ZERO) == v3.do_smth() )
def create_suite():
suite = unittest.TestSuite()
@@ -41,4 +43,4 @@
unittest.TextTestRunner(verbosity=2).run( create_suite() )
if __name__ == "__main__":
- run_suite()
\ No newline at end of file
+ run_suite()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|