summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 03:16:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 03:16:28 +0900
commit4f27089b4ad915b7bda151a49694dcc8fbb4a2fc (patch)
tree1b245362973ffc134a277085ab29a924dcbac920 /include
parent6423011986aca8e71508a8ffe6df823e44c196bd (diff)
parentbc663549eae0d16a2adb0cb0b1b68d34befe501c (diff)
downloadmruby-4f27089b4ad915b7bda151a49694dcc8fbb4a2fc.tar.gz
mruby-4f27089b4ad915b7bda151a49694dcc8fbb4a2fc.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h2
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