mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-07-30 16:26:21 +08:00
* added crutch for compilers that do not properly support constexpr if
This commit is contained in:
parent
b3895bd250
commit
5324d7c5d7
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user