Hi all,
Given the following code:
#define FOO
int add(int x, int y) { return x+y; }
int sub(int x, int y) { return x-y; }
int main(int argc, char **argv)
{
#ifdef FOO
return add(3,2);
#else
return sub(3,2);
#endif
}
the call graph generated will actually have both calls in main (add() and
sub()) despite only add() being included by the preprocessor. Can this be
changed to generate only the calls that are actually included?
Preprocessor output:
(...)
Preprocessor output (size: 151 bytes):
---------
00001 #define FOO
00002 int add(int x, int y) { return x+y; }
00003 int sub(int x, int y) { return x-y; }
00004
00005 int main(int argc, char **argv)
00006 {
00007
00008 return add(3,2);
00009
00010
00011
00012 }
00013
00014
---------
Macros accessible in this file:
---------
FOO
---------
(...)
Tks,
David
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users