Update comments
This commit is contained in:
1 parent
2c81582419
commit
8109c094db
2 files changed
+9
No files matched your search
@@ -145,6 +145,9 @@ M_INLINE void
|
||||
m_bitset_init_set(m_bitset_t d, const m_bitset_t s)
|
||||
{
|
||||
M_ASSERT (d != s);
|
||||
// In case of exception, d remains initialized,
|
||||
// but without any allocation done.
|
||||
// Therefore it is safe, not to clear d on exception.
|
||||
m_bitset_init(d);
|
||||
m_bitset_set(d, s);
|
||||
}
|
||||
|
||||
@@ -470,6 +470,9 @@ m_string_set_n(m_string_t v, const m_string_t ref, size_t offset, size_t length)
|
||||
M_INLINE void
|
||||
m_string_init_set(m_string_t v1, const m_string_t v2)
|
||||
{
|
||||
// In case of exception, v1 remains initialized,
|
||||
// but without any allocation done.
|
||||
// Therefore it is safe, not to clear v1 on exception.
|
||||
m_string_init(v1);
|
||||
m_string_set(v1,v2);
|
||||
}
|
||||
@@ -479,6 +482,9 @@ m_string_init_set(m_string_t v1, const m_string_t v2)
|
||||
M_INLINE void
|
||||
m_string_init_set_cstr(m_string_t v1, const char str[])
|
||||
{
|
||||
// In case of exception, v1 remains initialized,
|
||||
// but without any allocation done.
|
||||
// Therefore it is safe, not to clear v1 on exception.
|
||||
m_string_init(v1);
|
||||
m_string_set_cstr(v1, str);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user