Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
More preprocessing
#1
I am grateful you have implemented

Code:
#define
#ifdef
#else
#endif

Firstly I would also like to see

Code:
#if
#elif
defined

to complete the conditional preprocessing to a C level.

In particular I find I want to do things like:

Code:
#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:

Code:
#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.
Reply
#2
Dave,

I have forwarded this to IDE design team and they are working on it.

Thanks for your suggestions.

Sina Sattari
Hardware Engineering Manager
Delta Tau Data Systems, Inc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)