X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/df5a10f0fe49bbeb3f288bf2d50ae8b7eba406c8..c4de3b4124781ae066e774981efb0a6ef8c857ed:/include/xbt/cunit.h diff --git a/include/xbt/cunit.h b/include/xbt/cunit.h index e2f1ac949b..5b9ee2df29 100644 --- a/include/xbt/cunit.h +++ b/include/xbt/cunit.h @@ -10,7 +10,9 @@ #ifndef XBT_CUNIT_H_ #define XBT_CUNIT_H_ -#include +#ifdef __cplusplus +#include +#endif #include /* XBT_ATTRIB_PRINTF */ SG_BEGIN_DECL() @@ -123,8 +125,10 @@ XBT_PUBLIC void _xbt_test_log(const char* file, int line, const char* fmt, ...) * @hideinitializer */ #define xbt_test_log(...) _xbt_test_log(__FILE__, __LINE__, __VA_ARGS__) +#ifdef __cplusplus /** @brief Declare that the lastly started test failed because of the provided exception */ -XBT_PUBLIC void xbt_test_exception(xbt_ex_t e); +XBT_PUBLIC void xbt_test_exception(xbt_ex e); +#endif /** @brief Declare that the lastly started test was expected to fail (and actually failed) */ XBT_PUBLIC void xbt_test_expect_failure();