Add comments on description.

This commit is contained in:
Patrick Pelissier committed 2020-05-20 23:21:27 +02:00
1 parent c488d979cf
commit 8be06cadb3
3 files changed
+82

No files matched your search

+2
View File
@@ -1635,8 +1635,10 @@ M_PARSE_DEFAULT_TYPE_DEF(m_core_parse_ldouble, long double, strtold, )
NOTE: C definition is safer than the C++ one.
*/
#ifndef __cplusplus
/* Cast the object n into type only if it is C assignable */
# define M_ASSIGN_CAST(type, n) ((type) { 0 } = (n))
#else
/* Cast the object n into type using a static_cast */
# define M_ASSIGN_CAST(type, n) static_cast<type>(n)
#endif