PloygonAlgos - Throws error when used wrapper library in swift
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`
I was searching for TYPE in the project but couldn't find it?
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.