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
[s4u] Allocate Mailbox on the heap and return MailboxPtr
[simgrid.git]
/
include
/
xbt
/
dynar.h
diff --git
a/include/xbt/dynar.h
b/include/xbt/dynar.h
index
6dcebc9
..
8362120
100644
(file)
--- a/
include/xbt/dynar.h
+++ b/
include/xbt/dynar.h
@@
-26,7
+26,7
@@
SG_BEGIN_DECL()
* structure creation (of type void_f_ppvoid_t or void_f_pvoid_t).
*
* \section XBT_dynar_exscal Example with scalar
* structure creation (of type void_f_ppvoid_t or void_f_pvoid_t).
*
* \section XBT_dynar_exscal Example with scalar
- * \dontinclude dynar.c
+ * \dontinclude dynar.c
pp
*
* \skip Vars_decl
* \skip dyn
*
* \skip Vars_decl
* \skip dyn
@@
-256,6
+256,17
@@
xbt_dynar_foreach (dyn,cpt,str) {
(_cursor)++ )
#endif
/** @} */
(_cursor)++ )
#endif
/** @} */
-
SG_END_DECL()
SG_END_DECL()
+
+#ifdef __cplusplus
+namespace simgrid {
+namespace xbt {
+ inline void destroy(xbt_dynar_t s)
+ {
+ xbt_dynar_free(&s);
+ }
+}
+}
+#endif
+
#endif /* _XBT_DYNAR_H */
#endif /* _XBT_DYNAR_H */