Hi,

I'm trying to generate the call graph in the following C code, but it doesn't 
seem to take into the account the predecessor define.  Consider the following 
example, in which I see the documentation of func2 generated correctly, but the 
callgraph shows main -> func1, which is incorrect.

Any idea how to work around this?
Thanks in advance.


test.c:

#include <stdio.h>

#ifdef FUNC1
/*!
@par func1
*/
void func1(int test)
{
        printf("Called func1\n");
}
#else
/*!
@par func2
*/
void func2(int test)
{
        printf("Called func2\n");
}
#endif

int main() {

#ifdef FUNC1
        func1(0);
#else
        func2(0);
#endif

        return 0;
}

--
Dennis Hui
Software Developer (SR) | Presagis

T. +1 514 341.3874 X4257 F. +1 514 341.8018



AVIS DE CONFIDENTIALIT? - CONFIDENTIALITY NOTICE

Ce courriel est destin? exclusivement au(x) destinataire(s) mentionn?(s) 
ci-dessus et peut contenir de l'information privil?gi?e, confidentielle et/ou 
dispens?e de divulgation aux termes des lois applicables. Si vous avez re?u ce 
message par erreur ou s'il ne vous est pas destin?, veuillez le mentionner 
imm?diatement ? l'exp?diteur, effacer ce courriel sans en faire de copie et ne 
pas divulguer ou transmettre ? quiconque ce courriel.



This e-mail message is intended only for the above named recipient(s) and may 
contain information that is privileged, confidential and/or exempt from 
disclosure under applicable law. If you have received this message in error or 
are not the named recipient(s), please immediately notify the sender, delete 
this e-mail message without making a copy and do not disclose or relay this 
e-mail message to anyone.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Doxygen-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop

Reply via email to