Eclipse sees source code error [message #1058069] |
Fri, 10 May 2013 14:59  |
Eclipse User |
|
|
|
I recently started on a project with a huge amount of existing code. They use #defines to flag whether certain areas are to be put into SRAM or DRAM.
----------
ex:
#define SECTION_SRAM
(...)
void MyFunction(int x) SECTION_SRAM;
----------
Eclipse flags this as a syntax error, saying that I'm missing a ; after the function declaration - it doesn't recognize that SECTION_SRAM is defined as nothing, and so shouldn't affect the line.
The ARM compiler does recognize this and knows how to handle it. I can't change this method - is there a way to get Eclipse to work with this?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02834 seconds