diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-12 21:22:21 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:36 +0900 |
| commit | a93ef815be794a5afdaffd33b896cd64dc5f0a75 (patch) | |
| tree | 548512774ba3a29d217dc90f3d62471bfef449dc /include/mrbconf.h | |
| parent | 905d4010bf250f5ba793c911ff65f12a2eda2fb3 (diff) | |
| download | mruby-a93ef815be794a5afdaffd33b896cd64dc5f0a75.tar.gz mruby-a93ef815be794a5afdaffd33b896cd64dc5f0a75.zip | |
Add static check for `MRB_USE_FLOAT` and `MRB_WITHOUT_FLOAT`.
Diffstat (limited to 'include/mrbconf.h')
| -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 0d3d1ae5a..3867619a9 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -31,6 +31,10 @@ /* exclude floating point numbers */ //#define MRB_WITHOUT_FLOAT +#if defined(MRB_USE_FLOAT) && defined(MRB_WITHOUT_FLOAT) +#error Cannot define MRB_USE_FLOAT and MRB_WITHOUT_FLOAT at the same time +#endif + /* stop inlining floating point numbers in mrb_value (effective only with MRB_WORD_BOXING)*/ /* floating numbers are rounded to fit in 30 bits (float) and 62 bits respectively, */ /* by inlining. If you need full precision of floating numbers on the platform, */ |
