T O P I C R E V I E W |
tiancovici |
Posted - Sep 04 2019 : 07:59:16 AM Problem: When using #if-else-endif on the if(<condition>) portion, VA outline starts assuming all following functions are nested inside.
Expected behavior: All following function should be indented on same level
Reproduce Sample Code:
void func1(void) {
} void func2(void) { int x = 0; #if 1 if(x == 0) #else if( x == 1) #endif { } } void func3(void) {
} void func4(void) {
}
System notes Support ends 2019.12.01 VA_X.dll file version 10.9.2341.2 built 2019.08.05 DevEnv.exe version 14.0.25420.1 Professional msenv.dll version 14.0.25431.1 Comctl32.dll version 6.10.17763.719 Windows 10 10.0 1809 Build 17763.720 8 processors (x86-64, WOW64) Language info: 1252, 0x409
|
2 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Sep 06 2019 : 08:06:07 AM As a temporary work around, if you change "#if 1" into "#if 0", reversing the if / else blocks, then VA Outline shows this code correctly. Hopefully helpful if you don't run into this to often. |
accord |
Posted - Sep 04 2019 : 7:31:01 PM Thank you for the clear description and the sample code. I believe that this is
case=59101 |
|
|