Home Download Buy Blog Forum Support

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

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

Postby 0xc0170 on Tue Feb 12, 2013 7:59 am

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:
Code: Select all
#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
0xc0170
 
Posts: 1
Joined: Tue Feb 12, 2013 7:53 am

Return to Technical Support

Who is online

Users browsing this forum: eyalzek and 17 guests