X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/29a3b2869c0075fc75e8ccc66fc1d9c4c8bf6a85..d2d907185a41d4e59e9f4eaa7d42700ea9483140:/include/xbt/ex.h diff --git a/include/xbt/ex.h b/include/xbt/ex.h index ed4056626b..c37ff4719a 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2005-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2005-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -52,8 +52,6 @@ SG_BEGIN_DECL() */ XBT_PUBLIC const char* xbt_ex_catname(xbt_errcat_t cat); -typedef struct xbt_ex xbt_ex_t; - /** Helper function used to throw exceptions in C */ XBT_ATTRIB_NORETURN XBT_PUBLIC void _xbt_throw(char* message, xbt_errcat_t errcat, int value, const char* file, int line, const char* func); @@ -79,7 +77,7 @@ XBT_ATTRIB_NORETURN void xbt_throw_impossible(const char* file, int line, const /** Throw an exception because something unimplemented stuff has been attempted * @ingroup XBT_ex_c */ -XBT_ATTRIB_NORETURN void xbt_throw_unimplemented(const char* file, int line, const char* func); +XBT_ATTRIB_NORETURN XBT_PUBLIC void xbt_throw_unimplemented(const char* file, int line, const char* func); #define THROW_UNIMPLEMENTED xbt_throw_unimplemented(__FILE__, __LINE__, __func__) /** Die because something impossible happened @@ -87,9 +85,6 @@ XBT_ATTRIB_NORETURN void xbt_throw_unimplemented(const char* file, int line, con */ #define DIE_IMPOSSIBLE xbt_die("The Impossible Did Happen (yet again)") -/** Display an exception */ -XBT_PUBLIC void xbt_ex_display(xbt_ex_t* e); - SG_END_DECL() /** @} */