[pygccxml-commit] SF.net SVN: pygccxml: [386] pyplusplus_dev/pyplusplus/code_creators/calldef.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-08-07 10:50:45
|
Revision: 386 Author: roman_yakovenko Date: 2006-08-07 03:50:38 -0700 (Mon, 07 Aug 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=386&view=rev Log Message: ----------- introducing work around for enum registration order bug 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-07 09:57:39 UTC (rev 385) +++ pyplusplus_dev/pyplusplus/code_creators/calldef.py 2006-08-07 10:50:38 UTC (rev 386) @@ -58,7 +58,11 @@ if declarations.is_fundamental( arg_type_no_alias ) \ 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 ) ) + result.append( '=(%s)(%s)' % ( arg_type_no_alias.decl_string, arg.default_value ) ) + elif 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. |