Revision: 729
http://svn.sourceforge.net/pygccxml/?rev=729&view=rev
Author: roman_yakovenko
Date: 2006-11-16 14:20:02 -0800 (Thu, 16 Nov 2006)
Log Message:
-----------
adding todo item
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-11-16 22:19:32 UTC (rev 728)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-11-16 22:20:02 UTC (rev 729)
@@ -162,6 +162,8 @@
msgs = []
#TODO: functions that takes as argument pointer to pointer to smth, could not be exported
#see http://www.boost.org/libs/python/doc/v2/faq.html#funcptr
+
+ #TODO: add warning to the case described in registration_order.rest document.
if len( self.arguments ) > calldef_t.BOOST_PYTHON_MAX_ARITY:
tmp = [ "The function has more than %d arguments ( %d ). " ]
tmp.append( "You should adjust BOOST_PYTHON_MAX_ARITY macro." )
@@ -171,6 +173,7 @@
if suspicious_type( self.return_type ) and None is self.call_policies:
msgs.append( 'The function "%s" returns non-const reference to C++ fundamental type - value can not be modified from Python.' % str( self ) )
+
for index, arg in enumerate( self.arguments ):
if suspicious_type( arg.type ):
tmpl = [ 'The function takes as argument (name=%s, pos=%d ) ' ]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|