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

Change C functions to C++ functions in DSFMLC #249

Open
Jebbs opened this issue Jul 29, 2017 · 0 comments
Open

Change C functions to C++ functions in DSFMLC #249

Jebbs opened this issue Jul 29, 2017 · 0 comments
Milestone

Comments

@Jebbs
Copy link
Owner

Jebbs commented Jul 29, 2017

While the C functions work, I think switching to C++ functions would be better.

The main reason is that they have the benefit of leveraging better mangling than C uses, and this would provide a safer binding layer when linking. That is, if the function signatures do not match there will be a linker error.

There will need to be some creativity happening as a few types will no longer match on both ends, but I think it would be worth it in the long run.

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