mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
FASTFLOAT_ASSUME
This commit is contained in:
parent
b261492ae7
commit
a133b72fa8
@ -197,12 +197,12 @@ using parse_options = parse_options_t<char>;
|
|||||||
|
|
||||||
#ifndef FASTFLOAT_ASSERT
|
#ifndef FASTFLOAT_ASSERT
|
||||||
#define FASTFLOAT_ASSERT(x) \
|
#define FASTFLOAT_ASSERT(x) \
|
||||||
{ ((void)(x)); }
|
{ ((void)(x)); FASTFLOAT_ASSUME(x); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FASTFLOAT_DEBUG_ASSERT
|
#ifndef FASTFLOAT_DEBUG_ASSERT
|
||||||
#define FASTFLOAT_DEBUG_ASSERT(x) \
|
#define FASTFLOAT_DEBUG_ASSERT(x) \
|
||||||
{ ((void)(x)); }
|
{ ((void)(x)); FASTFLOAT_ASSUME(x); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// rust style `try!()` macro, or `?` operator
|
// rust style `try!()` macro, or `?` operator
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user