Open JPBarrick opened 11 months ago
I couldn't repro this
Try it with the #define _internal_ static
line in an included header file.
This is a "unity" style build.
The main C file includes the other C files, and includes a single header file:
The single header file (lcars.h) includes the other header files:
In the example video above, I defined a name of "blah", and it could not find it.
Unity builds can be a problem. If the header isn't included included by the file the parser can't see it.
However, I think I can get it working. As a test, could you send me the name of your unity cpp file (the one that includes everything else). I think if I parse that first it might work.
Go to the definition of a static variable works, with the static keyword.
However, if the static keyword is formed from a macro, then it doesn't work.
In this example, using Go To Definition for the variable _supportsize inside the _reservemem(...) function does not work. However, if the static keyword was used instead, then Go To Definition does work.