Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return type inconsistency (when using libffi?) #95

Open
vaartis opened this issue May 4, 2019 · 0 comments
Open

Return type inconsistency (when using libffi?) #95

vaartis opened this issue May 4, 2019 · 0 comments

Comments

@vaartis
Copy link

vaartis commented May 4, 2019

There seems to be an inconsistency in return types of functions that are seemingly same in the C header.

cpShape* cpCircleShapeNew(cpBody *body, cpFloat radius, cpVect offset);
cpShape* cpSegmentShapeNew(cpBody *body, cpVect a, cpVect b, cpFloat radius);

these return a raw pointer, instead of a wrapper

cpShape* cpBoxShapeNew(cpBody *body, cpFloat width, cpFloat height, cpFloat radius);

this returns a wrapped object.

Could this somehow be connected to libffi and passing cpVect by-value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant