Replace a macro with a different definition in Eclipse? -


i'm working on project defines globals this:

// define correctly-sized array of pointers avoid static initialization. // use array of pointers instead of array of char in case there alignment issue. #define define_global(type, name, ...) \     void * name[(sizeof(type) + sizeof(void *) - 1) / sizeof(void *)]; 

which apparently works fine, causes eclipse show every single usage of 1 of these globals error.

i prefer this:

#define define_global(type, name, ...) \     type name; 

but can't change file, there way tell eclipse pretend that's macro's definition?

if #define preferred definition after initial (unwanted) definition, eclipse seems use recent definition when dynamic macro expansion.

thus, if re-#define macro in file editing, may solve problem.

granted kludge , may cause unforeseen problems, may work implementation.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -