Author Topic: SlickEdit 2011 (v16.0.3.0 64-bit), does not find definition of #define  (Read 2197 times)


  • Senior Community Member
  • Posts: 470
  • Hero Points: 16
I used SE for embedded programming. Texas Instruments provides header files for their parts. The TI editor in Code Composer v5.x can find the definition of the #define macro but Slickedit cannot.

Example Slickedit cannot find the definition of ADC10CTL0.
void InitAdc(void)
    ADC10CTL0 &= ~ADC10ENC;               // Disable ADC during configuration
    more code ...
Header file:
#define SFR_16BIT(address)  extern volatile unsigned int address
SFR_16BIT(ADC10CTL0);                         /* ADC10 Control 0 */



  • Senior Community Member
  • Posts: 2638
  • Hero Points: 330
Re: SlickEdit 2011 (v16.0.3.0 64-bit), does not find definition of #define
« Reply #1 on: October 31, 2014, 02:12:03 pm »
In tools -> options -> languages ... c/c++ -> C/C++ Preprocessing

you need to add SFR_16BIT to the list of #defines and specify the expansion.

<quote from the options dialog>
 For performance considerations, Context Tagging® does not do full preprocessing, so macros thatinterfere with normal C++ syntax can cause the parser to miss symbols. To prevent this, use this page to add the necessary preprocessing macros. Arguments are allowed, for example: mymacro(a,b,c) You can add large numbers of #defines directly to the usercpp.h file located in the user config directory.