Menu

#273 cppparser: autocompletion ignores #ifdef's

open
nobody
None
5
2012-09-26
2004-07-09
No

in example:

include <stdio.h>

include <stdlib.h>

/*

define DONT_SHOW_THAT

undef DONT_SHOW_THAT

*/

ifdef DONT_SHOW_THAT

int some_function(int something)
{
return 0;
}

endif

int main(int argc, char *argv[])
{
some_<ctrl+space>
system("PAUSE");
return 0;
}


Above some_<ctrl+space> will still display
some_function(int something) even though it's not going
to be compiled. Same with if I uncomment define and
undef (which also makes DONT_SHOW_THAT undefined.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.