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

Functions not declared as ENET_API in enet.h #228

Open
michaeleggers opened this issue Jul 29, 2023 · 3 comments
Open

Functions not declared as ENET_API in enet.h #228

michaeleggers opened this issue Jul 29, 2023 · 3 comments

Comments

@michaeleggers
Copy link

When building enet as a DLL functions like:

extern void                  enet_peer_reset_queues (ENetPeer *);

are not being exported because their linkage is not ENET_API but extern.

Is there a reason why certain functions are not ENET_API? Thank you :)

@michaeleggers
Copy link
Author

OK, I realized that those functions without ENET_API are internal, which makes sense. I am generating bindings for another language and it makes it a bit awkward to do this with internal symbols mixed with the interface.

@Croydon
Copy link
Contributor

Croydon commented May 4, 2024

Seems like you have answered your own question. So this issue can be closed?

@michaeleggers
Copy link
Author

Seems like you didn't read the second part of my message. It is still a bit harder to generate a binding if internal/external functions are mixed.

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

2 participants