diff options
| author | Masaki Muranaka <[email protected]> | 2013-04-26 11:29:39 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-04-26 11:41:34 +0900 |
| commit | cbcd39bae41499e323f4055964510a27712a518b (patch) | |
| tree | 6511c2779052fbb2f785cd55b4dd1992950c6336 /include | |
| parent | 5c5101809b561e7f1b822b016c7b51150cb519a8 (diff) | |
| download | mruby-cbcd39bae41499e323f4055964510a27712a518b.tar.gz mruby-cbcd39bae41499e323f4055964510a27712a518b.zip | |
Avoid defining MRB_INT16 adn MRB_INT64 at the same time. This is a poka-yoke.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mrbconf.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
