X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6f48d1a65eeb69ebae17feb1d714db4a60764a51..4667db33a753d88cbcd186f191fb1e65f49f4bd6:/include/xbt/lib.h diff --git a/include/xbt/lib.h b/include/xbt/lib.h index 2c971abaca..404ed253c0 100644 --- a/include/xbt/lib.h +++ b/include/xbt/lib.h @@ -74,4 +74,16 @@ XBT_PUBLIC(void) xbt_lib_remove(xbt_lib_t lib, const char *key); xbt_dict_foreach((lib)->dict, cursor, key, data) SG_END_DECL() + +#ifdef __cplusplus +namespace simgrid { +namespace xbt { + inline void destroy(xbt_lib_t l) + { + xbt_lib_free(&l); + } +} +} +#endif + #endif /* _XBT_LIB_H */