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

PloygonAlgos - Throws error when used wrapper library in swift #771

Open
warmachinesocial opened this issue Jun 14, 2023 · 2 comments
Open

Comments

@warmachinesocial
Copy link

I don't know who's fault is this, I'm currently creating a binding for swift to use the library. However it couldn't build as it threw an error. Below is the list of macros that were throwing the error.

`#ifndef TYPE
#error "TYPE must be defined before including this header"
#endif

#ifndef IS_EMPTY
#error "IS_EMPTY must be defined before including this header"
#endif

#ifndef INIT_ITERATION
#error "INIT_ITERATION must be defined before including this header"
#endif

#ifndef ITERATE
#error "ITERATE must be defined before including this header"
#endif`

Screenshot 2023-06-13 at 7 07 00 PM

@warmachinesocial
Copy link
Author

I was searching for TYPE in the project but couldn't find it?

@nrabinowitz
Copy link
Collaborator

The TYPE is defined in linkedGeo.c and polygon.c - the idea is that the macros allow the code in polygonAlgos.h to be polymorphic in a way that's otherwise difficult in C. You shouldn't be including polygonAlgos.h directly - it's included in these two files.

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