English 中文(简体)
Eclipse CDT indicates syntax error for operator defines
原标题:

At my company we use C defines like this:

#define AND                 &&
#define bwAND               &

When using this eclipse underlines the expression as if it had a syntax error. How do I make it understand our logic operator defines?

问题回答

Your example works in Helios





相关问题
Eclipse-C++-Debugging: see content of an Array

Is it possible to see the content of a dynamically allocated array, as in: int *array = new int[dimension]; I only see the value of the pointer. edit: just found the option "display as an array", ...

g++ produces big binaries despite small project

Probably this is a common question. In fact I think I asked it years ago... but I can t remember the answer. The problem is: I have a project that is composed of 6 source files. All of them no more ...

Grouping Files in Project Explorer in Eclipse

I am newbie to Eclipse, I am planning to use it for AVR development with WinAVR and gcc. The feature I am looking for is the grouping of different files in the project, like all headers together, all ...

Eclipse CDT static resources under build folder

I m building a C++ project under Eclipse and my release folder should include a static sub-folder with some files inside it, those are required by executable during runtime. The problem is that this ...

"Export" button in Eclipse CDT "Paths and Symbols" dialog?

On the Includes tab of the Paths and Symbols section of the Project Properties dialog in the Eclipse CDT, there is an "Export" button: The best documentation I have found says that this "toggles ...

Create an Eclipse project on the command line?

I would like to have a shell script create an entire CDT project on the command line and add it to a workspace. I m willing to generate the .project and .cproject files myself, but I d like something ...

热门标签