preprocessor symbol map incorrect

RJD <[email protected]> Wed, 4 Feb 2015 18:35:17 +0000 (UTC)
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
I have this in my .emacs file:

=====.emacs=====
(semantic-c-add-preprocessor-symbol "UNIT_TESTS" "")
(semantic-c-add-preprocessor-symbol "SW_VERSION" "22"))
=====END .emacs=

This means semantic should be able to parse code that is within:

#if ( SW_VERSION >= 22 )
void someFunction( void ) { }
#endif /* ( SW_VERSION >= 22 ) */

and

#if defined( UNIT_TESTS )
void someOtherFunction( void ) { }
#endif /* defined( UNIT_TESTS ) */

And this works fine. However, in the case where I have a more complex check:

#if ( SW_VERSION >= 22 ) && ( defined( UNIT_TESTS ) )
void someOtherOtherFunc( void ) { }
#endif /* ( SW_VERSION >= 22 ) && ( defined( UNIT_TESTS ) ) */

This does not work.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/