In Eclipse, can you define preprocessor variables for all projects in the workspace?

I have an Eclipse workspace with several C projects: Project1, Project2, Project3, ... Project2, Project3, etc. all include the title from Project1. This header is heavy in preprocessor directives such as:

#ifdef OPTION1
  typedef MY_INT int;
#endif

To get Eclipse to find MY_INTProject2, Project3 in the code, I must currently add a preprocessor definition OPTION1for each project separately.

Is there a way to determine OPTION1globally, only once, for all projects in the workspace.

+4
source share
1 answer

The short answer is no.

: . .

0

Source: https://habr.com/ru/post/1598100/


All Articles