pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2018-09-03
2018-09-03 11:52:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>
c5a09fe227692528c1ba243e8f7f6adfed542873 (
20
lines) (+
20
/-
0
)
[
Show
|
Annotate
]
Branch:
master
EFUNs: Added m_clear().
1660:
} }
+
/*! @decl void m_clear(mapping map)
+
*!
+
*! Clear the contents of a mapping.
+
*!
+
*! This function clears the content of the mapping @[map] so
+
*! that it becomes empty. This is an atomic operation.
+
*!
+
*! @seealso
+
*! @[m_delete()]
+
*/
+
PMOD_EXPORT
+
PIKEFUN void m_clear(mapping map)
+
efun
+
optflags OPT_SIDE_EFFECT;
+
{
+
/* FIXME: Add an LFUN__M_CLEAR analogous with LFUN__M_DELETE? */
+
clear_mapping(map);
+
}
+
/*! @decl int get_weak_flag(array|mapping|multiset m) *! *! Returns the weak flag settings for @[m]. It's a combination of