python-autopxd2 icon indicating copy to clipboard operation
python-autopxd2 copied to clipboard

Define macros that expand to integers as constants

Open Keithcat1 opened this issue 4 years ago • 1 comments

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 avatar Dec 13 '21 22:12 Keithcat1

@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.

elijahr avatar Dec 14 '21 16:12 elijahr