Sublime Forum

Function navigation - same name (C/C++ with preprocessor)

#1

Hello all,

I have a question, I work on many projects where are functions preprocessed with macros therefore there might be 2 functions with same name in one code file. Display function name in ST2 displays only first occurrence of a function. I’ll post here an example:

#if MCU_1
void SET_PLL(void)
  {
   body
  }
#elif MCU_2
void SET_PLL(void)
  {
    body
  }
#endif

How to change this behavior? Thank you for all tips.

Regards,
c0170

0 Likes