* added crutch for compilers that do not properly support constexpr if

This commit is contained in:
IRainman 2026-07-06 22:49:21 +03:00
parent b3895bd250
commit 5324d7c5d7

View File

@ -255,12 +255,16 @@ using parse_options = parse_options_t<char>;
#ifndef FASTFLOAT_ASSERT
#define FASTFLOAT_ASSERT(x) \
{ ((void)(x)); }
{ \
((void)(x)); \
}
#endif
#ifndef FASTFLOAT_DEBUG_ASSERT
#define FASTFLOAT_DEBUG_ASSERT(x) \
{ ((void)(x)); }
{ \
((void)(x)); \
}
#endif
// rust style `try!()` macro, or `?` operator
@ -440,6 +444,8 @@ fastfloat_strncasecmp5(UC const *actual_mixedcase,
return (actual_mixedcase[4] | 32) == (expected_lowercase[4]);
}
}
// crutch for older GCC and MinGW probably.
return false;
}
// Compares two ASCII strings in a case insensitive manner.