From: cherierm Date: Fri, 20 Oct 2006 13:32:52 +0000 (+0000) Subject: The Ansi initialisation at the declaration of a struct impose that all values are... X-Git-Tag: v3.3~2462 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/61eea4d2a96e8804b2d0cecc2ef5bece461255d6 The Ansi initialisation at the declaration of a struct impose that all values are constantes (see _XBT_LOG_PRE macro modification). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2897 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/log.h b/include/xbt/log.h index d3c2d30b65..adb13a1068 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -314,11 +314,13 @@ extern xbt_log_appender_t xbt_log_default_appender; * Setting the LogEvent's valist member is done inside _log_logEvent. */ -#define _XBT_LOG_PRE(catv, priority) do { \ - if (_XBT_LOG_ISENABLEDV(catv, priority)) { \ - s_xbt_log_event_t _log_ev = \ - {&(catv),priority,__FILE__,_XBT_FUNCTION,__LINE__}; \ - _xbt_log_event_log(&_log_ev +#define _XBT_LOG_PRE(catv, priority) do { \ + if (_XBT_LOG_ISENABLEDV(catv, priority)) { \ + s_xbt_log_event_t _log_ev = \ + {NULL,priority,__FILE__,_XBT_FUNCTION,__LINE__}; \ + _log_ev.cat = &(catv); \ + _xbt_log_event_log(&_log_ev \ + #define _XBT_LOG_POST \ ); \