Revision: 166
Author: roman_yakovenko
Date: 2006-05-27 11:46:37 -0700 (Sat, 27 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=166&view=rev
Log Message:
-----------
Fixing bug in variable_wrapper, where variables holds
pointer to function
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py 2006-05-27 11:28:07 UTC (rev 165)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py 2006-05-27 18:46:37 UTC (rev 166)
@@ -42,11 +42,19 @@
return ''
if self.bits == 0 and self.name == "":
return "pyplusplus can not expose alignement bit."
- type_ = declarations.remove_const( self.type )
+ type_ = declarations.remove_alias( self.type )
+ type_ = declarations.remove_const( type_ )
if declarations.is_pointer( type_ ):
if self.type_qualifiers.has_static:
return "pyplusplus, right now, can not expose static pointer member variables. This could be changed in future."
if declarations.is_fundamental( type_.base ):
return "pyplusplus, right now, can not expose pointer to fundamental member variables. This could be changed in future."
+
+ units = declarations.decompose_type( type_ )
+ ptr2functions = filter( lambda unit: isinstance( unit, declarations.calldef_type_t )
+ , units )
+ if ptr2functions:
+ return "boost.python can not expose variables, which are pointer to function." \
+ + " See http://www.boost.org/libs/python/doc/v2/faq.html#funcptr for more information."
return ''
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|