From: mquinson Date: Fri, 14 Aug 2009 21:05:23 +0000 (+0000) Subject: C++ needs love X-Git-Tag: SVN~1111 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d579271194fbd8dd7ff1f0f5dbf225e4a1bfd7f2?hp=d7ca9f710441d0e104d521a52e01e7cb8876324c C++ needs love git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6557 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/ex.h b/include/xbt/ex.h index a688f0d89d..af1c0a3955 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -18,6 +18,8 @@ #include "xbt/misc.h" #include "xbt/virtu.h" +SG_BEGIN_DECL() + /*-*-* Emergency debuging: define this when the exceptions get crazy *-*-*/ #undef __EX_MAYDAY @@ -513,5 +515,7 @@ XBT_PUBLIC(void) xbt_backtrace_current(xbt_ex_t * e); /** @brief Display a previously captured backtrace */ XBT_PUBLIC(void) xbt_backtrace_display(xbt_ex_t * e); +SG_END_DECL() + /** @} */ #endif /* __XBT_EX_H__ */ diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index de2ef82ea3..7ae2aee44c 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -59,7 +59,7 @@ XBT_PUBLIC(char *) bprintf(const char *fmt, ...) _XBT_GNUC_PRINTF(1, 2); return res; } -extern void xbt_backtrace_display_current(void); +XBT_PUBLIC(void) xbt_backtrace_display_current(void); /** @brief Like malloc, but xbt_die() on error @hideinitializer */