diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/value.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h index d51fbb7bc..a940aabb7 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -72,6 +72,8 @@ typedef short mrb_sym; # define PRIo64 "I64o" # define PRIx64 "I64x" # define PRIX64 "I64X" +# define INFINITY ((float)(DBL_MAX * DBL_MAX)) +# define NAN ((float)(INFINITY - INFINITY)) # else # include <inttypes.h> # endif |
