GNOME Bugzilla – Bug 169204
codegen doesn't like const object args for no appearent reason
Last modified: 2008-07-16 10:12:38 UTC
Distribution/Version: Debian/sarge I have a class called MiaVector3d and amongst others a method gfloat mia_vector3d_dot(const MiaVector3d *a, const MiaVector3d *b); In the original codegen complains about the second parameter with some "Cannot create method Vector3d.dot: 'const-MiaVector3d*' ArgType not found" (or so) error. Looking at the BoxedArg in argtypes.py, I was able to change the ObjectArg and the type registration in a way to create the wrapper, and it is working without (apparent) problems.
Created attachment 38251 [details] [review] A patch to let codegen handle const object args
Thanks, applied your patch with some slight changes.