robotpy / robotpy-cppheaderparser

DEPRECATED: use cxxheaderparser instead
Other
123 stars 39 forks source link

Classes not interpreted properly when defined inside #ifdef #56

Closed nisarul closed 3 years ago

nisarul commented 3 years ago

Classes with definitions inside #ifdef-#else-#endif are not parsed properly.

#ifdef FEATURE_X
class BaseClass
   : public ClassFtX
#else
class BaseClass
#endif
{
    #something
};

Above class is not identified as a class when parsing.

auscompgeek commented 3 years ago

Implementing a C preprocessor is largely a non-goal of this project. See also #16 and the note in the readme.

virtuald commented 3 years ago

Yes, use a preprocessor.