Re: [Vala] Too many arguments in generated code



On Do, 2012-04-05 at 17:52 +0800, PCMan wrote:

Why not do it like this?


[CCode (cheader_filename =
"skeltrack.h",free_function"joint_list_free")]
[SimpleType]
public class JointList {
    public Skeltrack.Joint get_joint(Skeltrack.JointId id);
}

Unfortunately that does not seem to be the point as in this case there
is one argument less, but there is an extra argument created, too. In
addition, it conflicts with the definition provided in the header files:

/usr/local/include/skeltrack-0.1/skeltrack-joint.h:84:22: note: expected
‘SkeltrackJointId’ but argument is of type ‘struct SkeltrackJoint *’

--tomw







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]