DSFML icon indicating copy to clipboard operation
DSFML copied to clipboard

Change C functions to C++ functions in DSFMLC

Open Jebbs opened this issue 8 years ago • 0 comments

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.

Jebbs avatar Jul 29 '17 05:07 Jebbs