Skip to content

Commit

Permalink
add version macros
Browse files Browse the repository at this point in the history
  • Loading branch information
dalle committed Nov 22, 2024
1 parent cb1d42a commit 35d0c8c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions include/fast_float/float_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@
#endif
#include "constexpr_feature_detect.h"

#define FASTFLOAT_VERSION_MAJOR 7
#define FASTFLOAT_VERSION_MINOR 0
#define FASTFLOAT_VERSION_PATCH 0

#define FASTFLOAT_STRINGIZE_IMPL(x) #x
#define FASTFLOAT_STRINGIZE(x) FASTFLOAT_STRINGIZE_IMPL(x)

#define FASTFLOAT_VERSION_STR \
FASTFLOAT_STRINGIZE(FASTFLOAT_VERSION_MAJOR) \
"." FASTFLOAT_STRINGIZE(FASTFLOAT_VERSION_MINOR) "." FASTFLOAT_STRINGIZE( \
FASTFLOAT_VERSION_PATCH)

#define FASTFLOAT_VERSION \
(FASTFLOAT_VERSION_MAJOR * 10000 + FASTFLOAT_VERSION_MINOR * 100 + \
FASTFLOAT_VERSION_PATCH)

namespace fast_float {

enum class chars_format : uint64_t;
Expand Down

0 comments on commit 35d0c8c

Please sign in to comment.