[pygccxml-commit] SF.net SVN: pygccxml: [565] pyplusplus_dev/pyplusplus/module_creator/ creator.py
Brought to you by:
mbaas,
roman_yakovenko
From: <mb...@us...> - 2006-09-20 16:54:20
|
Revision: 565 http://svn.sourceforge.net/pygccxml/?rev=565&view=rev Author: mbaas Date: 2006-09-20 09:54:14 -0700 (Wed, 20 Sep 2006) Log Message: ----------- Modified visit_member_function() so that the GIL class gets written and included. 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-20 16:52:11 UTC (rev 564) +++ pyplusplus_dev/pyplusplus/module_creator/creator.py 2006-09-20 16:54:14 UTC (rev 565) @@ -564,6 +564,13 @@ # Set the wrapper so that the registration code will refer to it maker.wrapper = mftw + # Include the gil_state header from the code repository. + if not self.__extmodule.is_system_header(code_repository.gil_state.file_name): + self.__extmodule.add_system_header( code_repository.gil_state.file_name ) + self.__extmodule.adopt_creator( code_creators.include_t( code_repository.gil_state.file_name ) + , self.__extmodule.first_include_index() + 1) + + if self.curr_decl.has_static: #static_method should be created only once. found = filter( lambda creator: isinstance( creator, code_creators.static_method_t ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |