[program-l] Detecting #ifdef in C language with Eclipse

  • From: "falinn" <falinn.onda@xxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Sun, 4 Nov 2018 11:35:35 +0200

Hi,

 

I started working with an Eclipse based IDE for embedded software
development in C language.

Most of my work is with existing code that contains many compilation
conditions such as #ifdef that surround blocks of code.

 

My question is - how can I detect if a certain line of code is not part of
my compiled code due to #ifedf surrounding it?

 

Has anyone managed to use syntax highlighting and INSERT+5 to identify if a
line of code is omitted?

It there a different way to do this? 

 

I'll be doing a lot of searches for code lines that call a function or use a
variable. 

So I'll need to find an efficient way to detect if a line of code is
actually relevant.

 

I am using latest JAWS as a screen reader.

 

Thanks.

Other related posts:

  • » [program-l] Detecting #ifdef in C language with Eclipse - falinn