python-autopxd2
python-autopxd2 copied to clipboard
Define macros that expand to integers as constants
So in my header I have at least one hundred constants like: #define X 5 #define Y 10
ETC. I would like it if Autopxd could translate them to Cython expressions. I'm 99% sure this can be done like this: cdef extern from "someheader.h": cdef const int X, Y
@Keithcat1 I'm maintaining this project - merging pull requests and fixing bugs - but my focus is elsewhere. If you create a pull request, I will review it and can put out a new release with your changes.