X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cfc676704bebcd57e5ea98bb43154245a150948f..4667db33a753d88cbcd186f191fb1e65f49f4bd6:/include/xbt/swag.h diff --git a/include/xbt/swag.h b/include/xbt/swag.h index fa96ed4d7d..e406066160 100644 --- a/include/xbt/swag.h +++ b/include/xbt/swag.h @@ -189,4 +189,16 @@ static inline void *xbt_swag_getFirst(xbt_swag_t swag) /* @} */ SG_END_DECL() + +#ifdef __cplusplus +namespace simgrid { +namespace xbt { + inline void destroy(xbt_swag_t s) + { + xbt_swag_free(s); + } +} +} +#endif + #endif /* _XBT_SWAG_H */