Closed rokups closed 6 years ago
Could you try the following things for me: a) What happens when you manually define the macros in the same file? b) What happens when you manually preprocess those macros?
Thank you.
Manually preprocessing macros still results in same error. Moving these macros into same file as enum makes it run without issues and cppast properly picks up preprocessed expressions.
Okay, this is fixed now.
One enum i have is using macros from external library:
Header includes
SDL/SDL_mouse.h
where these macros are defined. Parsing fails "no tokens available" for enum elements that are using preprocessor macros as values. Actual InputEvents.h.Input flags: -fPIC -msse -msse2 -Wno-invalid-offsetof -std=gnu++11