Rename float configuration option names.

- `MRB_WITHOUT_FLOAT` => `MRB_NO_FLOAT`
- `MRB_USE_FLOAT` => `MRB_USE_FLOAT32`

The former is to use `USE_XXX` naming convention. The latter is to make
sure `float` is 32bit float and not floating point number in general.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-08-14 14:34:53 +09:00
parent ef9df5dc7d
commit 8a87549315
51 changed files with 223 additions and 202 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ assert('Float#>>') do
end
assert('Float#to_s') do
uses_float = 4e38.infinite? # enable MRB_USE_FLOAT?
uses_float = 4e38.infinite? # enable MRB_USE_FLOAT32?
assert_equal("Infinity", Float::INFINITY.to_s)
assert_equal("-Infinity", (-Float::INFINITY).to_s)