From cbcd39bae41499e323f4055964510a27712a518b Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Fri, 26 Apr 2013 11:29:39 +0900 Subject: Avoid defining MRB_INT16 adn MRB_INT64 at the same time. This is a poka-yoke. --- include/mrbconf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/mrbconf.h b/include/mrbconf.h index d8dca7d61..4e256384d 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -71,6 +71,10 @@ # define str_to_mrb_float(buf) strtod(buf, NULL) #endif +#if defined(MRB_INT16) && defined(MRB_INT64) +# error You can't define MRB_INT16 and MRB_INT64 at the same time. +#endif + #if defined(MRB_INT64) # ifdef MRB_NAN_BOXING # error Cannot use NaN boxing when mrb_int is 64bit -- cgit v1.2.3 From d4476109c4376ca7eccc9f6cb3a10e68ec623d78 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Fri, 26 Apr 2013 11:44:53 +0900 Subject: Add a descrption of MRB_INT16. --- include/mrbconf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mrbconf.h b/include/mrbconf.h index 4e256384d..80aad11e7 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -14,7 +14,10 @@ /* add -DMRB_USE_FLOAT to use float instead of double for floating point numbers */ //#define MRB_USE_FLOAT -/* add -DMRB_INT64 to use 64bit integer for mrb_int */ +/* add -DMRB_INT16 to use 16bit integer for mrb_int; conflict with MRB_INT64 */ +//#define MRB_INT16 + +/* add -DMRB_INT64 to use 64bit integer for mrb_int; conflict with MRB_INT16 */ //#define MRB_INT64 /* represent mrb_value in boxed double; conflict with MRB_USE_FLOAT */ -- cgit v1.2.3