Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
56842628
Unverified
Commit
56842628
authored
Jan 28, 2021
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop mentioning `MRB_NO_PRESYM` in the doc.
It's for internal use. Please use `conf.disable_presym`.
parent
07d44986
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
doc/guides/symbol.md
doc/guides/symbol.md
+3
-3
doc/mruby3.md
doc/mruby3.md
+0
-4
No files found.
doc/guides/symbol.md
View file @
56842628
...
...
@@ -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.
doc/mruby3.md
View file @
56842628
...
...
@@ -90,10 +90,6 @@ changed from previous versions.
Call
`malloc_trim(0)`
from mrb_full_gc() if this macro is defined.
If you are using glibc malloc, this macro could reduce memory consumption.
## `MRB_NO_PRESYM`
Remove preallocated symbol system.
# Command Line Program
## `bin/mruby` (by mrbgems/mruby-bin-mruby)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment