diff options
| author | KOBAYASHI Shuji <[email protected]> | 2020-12-05 19:26:38 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2020-12-05 19:26:38 +0900 |
| commit | f84668f8d5c58c0ece216c34fa80c2c2ffb984d7 (patch) | |
| tree | b12ad5af4da2e2ff841d6c51093b9bdeb04f3eb2 | |
| parent | 6e5a0f623fdc848339ce33091b7857c57ba238c7 (diff) | |
| download | mruby-f84668f8d5c58c0ece216c34fa80c2c2ffb984d7.tar.gz mruby-f84668f8d5c58c0ece216c34fa80c2c2ffb984d7.zip | |
Update "Configuration Options Changed" in `doc/mruby3.md` [ci skip]
| -rw-r--r-- | doc/mruby3.md | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/doc/mruby3.md b/doc/mruby3.md index 3d9159940..ae1a9b38e 100644 --- a/doc/mruby3.md +++ b/doc/mruby3.md @@ -39,25 +39,31 @@ We have ported some new syntax from CRuby. # Configuration Options Changed -Some configuration macro names are changed for consistency - -## `MRB_NO_FLOAT` - -Changed from `MRB_WITHOUT_FLOAT` to conform `USE_XXX` naming -convention. - -## `MRB_USE_FLOAT32` - -Changed from `MRB_USE_FLOAT` to make sure `float` here means -using single precision float, and not the opposite of -`MRB_NO_FLOAT`. - -## `MRB_USE_METHOD_T_STRUCT` - -Changed from `MRB_METHOD_T_STRUCT`. - -To use `struct` version of `mrb_method_t`. More portable but consumes more memory. -Turned on by default on 32bit platforms. +## Renamed for consistency + +Some configuration macro names are changed for consistency (use `MRB_USE_XXX` + or `MRB_NO_XXX`). + +| mruby2 | mruby3 | +|--------------------------------|---------------------------| +| `MRB_ENABLE_ALL_SYMBOLS` | `MRB_USE_ALL_SYMBOLS` | +| `MRB_ENABLE_CXX_ABI` | `MRB_USE_CXX_ABI` | +| `MRB_ENABLE_CXX_EXCEPTION` | `MRB_USE_CXX_EXCEPTION` | +| `MRB_ENABLE_DEBUG_HOOK` | `MRB_USE_DEBUG_HOOK` | +| `MRB_DISABLE_DIRECT_THREADING` | `MRB_NO_DIRECT_THREADING` | +| `MRB_DISABLE_STDIO` | `MRB_NO_STDIO` | +| `MRB_METHOD_T_STRUCT` | `MRB_USE_METHOD_T_STRUCT` | +| `MRB_USE_FLOAT` | `MRB_USE_FLOAT32` | +| `MRB_WITHOUT_FLOAT` | `MRB_NO_FLOAT` | +| `ENABLE_LINENOISE` | `MRB_USE_LINENOISE` | +| `ENABLE_READLINE` | `MRB_USE_READLINE` | +| `DISABLE_MIRB_UNDERSCORE` | `MRB_NO_MIRB_UNDERSCORE` | + +* `MRB_USE_FLOAT32` is changed from `MRB_USE_FLOAT` to make sure `float` here + means using single precision float, and not the opposite of `MRB_NO_FLOAT`. +* `MRB_USE_METHOD_T_STRUCT` uses `struct` version of `mrb_method_t`. More + portable but consumes more memory. Turned on by default on 32bit platforms. +* `MRB_` prefix is added to those without. ## `MRB_NO_BOXING` @@ -141,7 +147,6 @@ No more operand extention Jump addresses used to be specified by absolute offset from the start of `iseq`. Now they are relative offset from the address of the next instruction. - ## `Random` now use `xoshiro128++`. For better and faster random number generation. |
