Revision: 238
Author: roman_yakovenko
Date: 2006-06-20 06:18:16 -0700 (Tue, 20 Jun 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=238&view=rev
Log Message:
-----------
adding BOOST_PYTHON_MAX_ARITY
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-20 12:48:20 UTC (rev 237)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-06-20 13:18:16 UTC (rev 238)
@@ -14,7 +14,10 @@
##return False
##return self.declaration.virtuality != declarations.VIRTUALITY_TYPES.PURE_VIRTUAL
-class calldef_t(decl_wrapper.decl_wrapper_t):
+class calldef_t(decl_wrapper.decl_wrapper_t):
+
+ BOOST_PYTHON_MAX_ARITY = 10
+
def __init__(self, *arguments, **keywords):
decl_wrapper.decl_wrapper_t.__init__( self, *arguments, **keywords )
@@ -96,7 +99,7 @@
def _exportable_impl( self ):
#see http://www.boost.org/libs/python/doc/v2/faq.html#funcptr
- if len( self.arguments ) > 10:
+ if len( self.arguments ) > calldef_t.BOOST_PYTHON_MAX_ARITY:
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"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|