Closed i01y closed 2 years ago
As per the README, you need to use a separate preprocessor to handle #define:
CppHeaderParser only does some very minimal interpretation of preprocessor directives -- and we're looking at removing some of that from this library. If you need anything complex, you should preprocess the code yourself. You can use the excellent pure python preprocessor pcpp, or the preprocessing facilities provided by your favorite compiler.
Problem description
I try to parsI try to parse the header file as follows:
It's OK in C++ programs。
But parsing with robotpy-cppheaderparser will report the following error:
It seems that the #define in the enumeration cannot be recognized。
Operating System
Windows
Installed Python Packages
No response
Reproducible example code