Revision: 572
http://svn.sourceforge.net/pygccxml/?rev=572&view=rev
Author: roman_yakovenko
Date: 2006-09-21 04:31:18 -0700 (Thu, 21 Sep 2006)
Log Message:
-----------
fix treatment of function tramsformations
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/module_creator/creator.py
Modified: pyplusplus_dev/pyplusplus/module_creator/creator.py
===================================================================
--- pyplusplus_dev/pyplusplus/module_creator/creator.py 2006-09-21 09:54:39 UTC (rev 571)
+++ pyplusplus_dev/pyplusplus/module_creator/creator.py 2006-09-21 11:31:18 UTC (rev 572)
@@ -315,6 +315,8 @@
return True #virtual and pure virtual functions requieres wrappers.
if member.access_type in ( ACCESS_TYPES.PROTECTED, ACCESS_TYPES.PRIVATE ):
return True #we already decided that those functions should be exposed, so I need wrapper for them
+ if member.function_transformers:
+ return True #function transformers require wrapper
return bool( self.redefined_funcs(class_inst) )
def register_opaque_type( self, type_, call_policy ):
@@ -551,19 +553,6 @@
maker = maker_cls( function=self.curr_decl )
self.curr_code_creator.adopt_creator( maker )
- # Are we dealing with transformed non-virtual member functions?
- if maker_cls==code_creators.mem_fun_transformed_t:
- # Create the code creator that generates the function source code
- fwrapper = code_creators.mem_fun_transformed_wrapper_t(self.curr_decl)
- # and add it either to the wrapper class or just to the declaration
- # area of the cpp file
- if self.curr_code_creator.wrapper is None:
- self.curr_code_creator.associated_decl_creators.append(fwrapper)
- else:
- self.curr_code_creator.wrapper.adopt_creator(fwrapper)
- # Set the wrapper so that the registration code will refer to it
- maker.wrapper = fwrapper
-
# Make sure all required headers are included...
required_headers = getattr(fwrapper, "get_required_headers", lambda : [])()
for header in required_headers:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|