2

If any macro shows up in the definition, source insight would fail to recognize the function correctly.

Like this:

header:

//whateverheader.h
#define DECLINLINE(type) static __inline__ type

source:

//whateversource.c
static DECLINLINE(int) FuncAnyFunction(int arg) { ... }

Source Insight CANNOT recognize the function "FuncAnyFunction", and instead, it marks "DECLINLINE" as a function, hence in the symbol tab of source insight, I see millions of functions with the same name "DECLINLINE" instead of their real names.

Moreover, I cannot jump to the definition of the function from another function.

Artem Zankovich
  • 2,319
  • 20
  • 36
Sean
  • 563
  • 1
  • 7
  • 18

1 Answers1

1

Add your macro definition to a Token Macro file. For / it is C.tom in My Documents\Source Insight\ or project data directory. Just add the next line:

DECLINLINE(X)

More details can be found at documentation: http://www.sourceinsight.com/docs35/af914786.htm

Artem Zankovich
  • 2,319
  • 20
  • 36