daves Posted July 15, 2011 Posted July 15, 2011 I am grateful you have implemented #define #ifdef #else #endif Firstly I would also like to see #if #elif defined to complete the conditional preprocessing to a C level. In particular I find I want to do things like: #if defined BUFSIZE && BUFSIZE >= 1024 #endif #if RIGNUMBER == 15 || RIGNUMBER == 14 #endif Secondly I would like the conditional directives to work inside the pmh files, for example: #define RIGHALF //#define RIGFULL #ifdef RIGHALF global gFourWheelsTrue = 0; #endif #ifdef RIGFULL global gFourWheelsTrue = 1; #endif This (only) warns of redefinition, i.e both lines are included after preprocessing.
Sina.Sattari Posted July 18, 2011 Posted July 18, 2011 Dave, I have forwarded this to IDE design team and they are working on it. Thanks for your suggestions.
Recommended Posts