diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-28 16:47:02 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-01-28 16:47:02 +0900 |
| commit | 56842628b9968d2786be7b9c772ee8f8fb51248d (patch) | |
| tree | 31fe5c5d24f6facb0737466c13e0cbd5e1460f6b /doc/guides/symbol.md | |
| parent | 07d449861363ac9a0226d5119350244ba198fb20 (diff) | |
| download | mruby-56842628b9968d2786be7b9c772ee8f8fb51248d.tar.gz mruby-56842628b9968d2786be7b9c772ee8f8fb51248d.zip | |
Stop mentioning `MRB_NO_PRESYM` in the doc.
It's for internal use. Please use `conf.disable_presym`.
Diffstat (limited to 'doc/guides/symbol.md')
| -rw-r--r-- | doc/guides/symbol.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/guides/symbol.md b/doc/guides/symbol.md index 9236a3c0d..e9e72a6d3 100644 --- a/doc/guides/symbol.md +++ b/doc/guides/symbol.md @@ -71,7 +71,7 @@ can be specified for it). Other than that, describe only word characters excluding leading and ending punctuations. These macros are converted to static symbol IDs at compile time, unless -preallocate symbols are disabled by defining `MRB_NO_PRESYM`. In that case, +preallocate symbols are disabled by `conf.disable_presym`. In that case, these macros are expanded to `mrb_intern_lit` calls, therefore the mruby state variable is required. The above macros assume the variable name is `mrb`. If its name is not `mrb`, you need to use macros with `_2` suffix, such as @@ -79,5 +79,5 @@ its name is not `mrb`, you need to use macros with `_2` suffix, such as ### Disabling Preallocated Symbols -By defining `MRB_NO_PRESYM` macro, you can disable preallocated symbols. -Or you can specify `conf.disable_presym` in the configuration file. +You can disable preallocated symbols by specifying `conf.disable_presym` in the +configuration file. |
