A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mc] Use std::string in simgrid::mc::request_to_string
[simgrid.git]
/
include
/
xbt
/
lib.h
diff --git
a/include/xbt/lib.h
b/include/xbt/lib.h
index 2c971abaca5855b14c33e91ec47d875a58550c21..404ed253c07da71dbd713ff7db28227fa83c58d4 100644
(file)
--- 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 */