Revision: 450
Author: allenb
Date: 2006-08-23 16:29:13 -0700 (Wed, 23 Aug 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=450&view=rev
Log Message:
-----------
Add enum work around flag.
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/calldef.py
Modified: pyplusplus_dev/pyplusplus/code_creators/calldef.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/calldef.py 2006-08-23 22:18:27 UTC (rev 449)
+++ pyplusplus_dev/pyplusplus/code_creators/calldef.py 2006-08-23 23:29:13 UTC (rev 450)
@@ -16,6 +16,7 @@
#will be reference to no where - access violetion.
#For example see temporal variable tester
+use_enum_workaround = False
#TODO:
#Add to docs:
@@ -59,6 +60,10 @@
and declarations.is_integral( arg_type_no_alias ) \
and not arg.default_value.startswith( arg_type_no_alias.decl_string ):
result.append( '=(%s)(%s)' % ( arg_type_no_alias.decl_string, arg.default_value ) )
+ elif use_enum_workaround and declarations.is_enum( arg.type ):
+ #Work around for bug/missing functionality in boost.python.
+ #registration order
+ result.append( '=(long)(%s)' % arg.default_value )
else:
result.append( '=%s' % arg.default_value )
else:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|