mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Avoid defining MRB_INT16 adn MRB_INT64 at the same time. This is a poka-yoke.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user