Revision: 214
Author: roman_yakovenko
Date: 2006-06-05 12:01:29 -0700 (Mon, 05 Jun 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=214&view=rev
Log Message:
-----------
fixing bug: functions with more then 10 arguments
could be exported, BOOST_PYTHON_MAX_ARITY
define should be adjusted
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-06-05 18:36:16 UTC (rev 213)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-06-05 19:01:29 UTC (rev 214)
@@ -6,7 +6,7 @@
import os
import decl_wrapper
from pygccxml import declarations
-
+from pyplusplus import _logging_
##May be in future I will enable this functionality again, right now it seems
##that this is useless
##def is_finalizable(self):
@@ -97,7 +97,11 @@
def _exportable_impl( self ):
#see http://www.boost.org/libs/python/doc/v2/faq.html#funcptr
if len( self.arguments ) > 10:
- return "boost.python can not expose function with more then 10 arguments. ( impl details: boost.tuple is limited to 10 args )."
+ msg = "You have function with more then 10 arguments( %d ). "
+ msg = msg + " You should adjest BOOST_PYTHON_MAX_ARITY"
+ msg = msg + " For more information see: http://mail.python.org/pipermail/c++-sig/2002-June/001554.html"
+ _logging_.logger.info( msg % len( self.arguments ) )
+
all_types = [ arg.type for arg in self.arguments ]
all_types.append( self.return_type )
for some_type in all_types:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|