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

call.h for the struct API? #262

Open
FrostKiwi opened this issue Oct 21, 2022 · 1 comment
Open

call.h for the struct API? #262

FrostKiwi opened this issue Oct 21, 2022 · 1 comment

Comments

@FrostKiwi
Copy link
Contributor

Big fan of cglm.
Want to try out making a project with the struct API. If you precompile cglm, you need to use call.h and the calls become glmc_XXX. But it doesn't seem, that this is possible with the struct api, as there exists no struct_call.h and no glmsc_XXX.

Is this an undesired feature? Is this a planned feature?
Can you reorganize the headers yourself to split them into a header and implementation, similar to how you can split single-header libraries?

@recp
Copy link
Owner

recp commented Oct 21, 2022

Hi @FrostKiwi,

Big fan of cglm.

🤗

I didn't think about struct-call before actually. struct_call.h could be an option or we could provide a macro option like GLM_STRUCT_FORWARD_TO_CALL maybe, to forward all struct functions to call apis instead of inline api, default could be inline. But it would disable struct-inline entirely which may not be desired always. But it can be an option.

Let's get more feedback for this


Another possible update to struct api: #197

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

No branches or pull requests

2 participants