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] Mark xbt::string as a hack
[simgrid.git]
/
include
/
xbt
/
swag.h
diff --git
a/include/xbt/swag.h
b/include/xbt/swag.h
index
fa96ed4
..
e406066
100644
(file)
--- 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 */