Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tell in which function we are in GRAS_IN/OUT (when compiling with gcc)
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 7 Aug 2004 07:08:19 +0000 (07:08 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 7 Aug 2004 07:08:19 +0000 (07:08 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@352 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/gras/log.h

index 0499609..fdba22e 100644 (file)
@@ -538,7 +538,12 @@ extern gras_log_appender_t *gras_log_default_appender;
 #define CRITICAL5(f,a1,a2,a3,a4,a5)    LOG5(gras_log_priority_critical, f,a1,a2,a3,a4,a5)
 #define CRITICAL6(f,a1,a2,a3,a4,a5,a6) LOG6(gras_log_priority_critical, f,a1,a2,a3,a4,a5,a6)
 
+#ifdef __GNUC__
+#define GRAS_IN  DEBUG1(">> begin of %s",__FUNCTION__)
+#define GRAS_OUT DEBUG1("<< end of %s",__FUNCTION__)
+#else
 #define GRAS_IN  DEBUG0(">> begin of function")
 #define GRAS_OUT DEBUG0("<< end of function")
+#endif
 
 #endif /* ! _GRAS_LOG_H_ */