X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fd0a64e86162f81a978a22d84d16c5d8f2e8d1f5..3cdd0ac83adfa4f28b05b4c1961555e5203bc6a8:/include/xbt/ex.h diff --git a/include/xbt/ex.h b/include/xbt/ex.h index ef5b9168a2..2d17bffe1c 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -65,7 +65,7 @@ SG_BEGIN_DECL() # define MAYDAY_CATCH(e) printf("%d %s:%d Catched '%s'\n", \ xbt_getpid(), __FILE__, __LINE__, \ (e).msg \ - ), + ), #else # define MAYDAY_SAVE(m) # define MAYDAY_RESTORE(m) @@ -313,12 +313,12 @@ XBT_PUBLIC_DATA(const xbt_running_ctx_t) __xbt_ex_ctx_initializer; /* the exception context */ typedef xbt_running_ctx_t *(*xbt_running_ctx_fetcher_t) (void); XBT_PUBLIC_DATA(xbt_running_ctx_fetcher_t) __xbt_running_ctx_fetch; -extern xbt_running_ctx_t *__xbt_ex_ctx_default(void); +XBT_PUBLIC( xbt_running_ctx_t *)__xbt_ex_ctx_default(void); /* the termination handler */ typedef void (*ex_term_cb_t) (xbt_ex_t *); XBT_PUBLIC_DATA(ex_term_cb_t) __xbt_ex_terminate; -extern void __xbt_ex_terminate_default(xbt_ex_t * e); +XBT_PUBLIC( void )__xbt_ex_terminate_default(xbt_ex_t * e); /** @brief Introduce a block where exception may be dealed with * @hideinitializer @@ -516,5 +516,5 @@ XBT_PUBLIC(void) xbt_backtrace_display(xbt_ex_t * e); SG_END_DECL() -/** @} */ +/** @} */ #endif /* __XBT_EX_H__ */