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
79787df0
Commit
79787df0
authored
Jun 27, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mruby/mruby
parents
729a760f
9f8fe6f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
doc/api/mruby.h.md
doc/api/mruby.h.md
+1
-1
doc/mrbconf/README.md
doc/mrbconf/README.md
+36
-1
No files found.
doc/api/mruby.h.md
View file @
79787df0
...
...
@@ -66,4 +66,4 @@ char|mruby type|retrieve types|note
<code>
|
</code>
|optional||After this spec following specs would be optional.
`?`
|optional given|
`mrb_bool`
|True if preceding argument is given. Used to check optional argument is given.
The passing variadic arguments must be a pointer of retr
ei
ving type.
The passing variadic arguments must be a pointer of retr
ie
ving type.
doc/mrbconf/README.md
View file @
79787df0
...
...
@@ -82,10 +82,14 @@ will be defined as `mrb_int`.
*
Useful tracking unnecessary mruby object allocation.
`MRB_GC_ARENA_SIZE`
*
Default value is
100
.
*
Default value is
`100`
.
*
Ignored when
`MRB_GC_FIXED_ARENA`
isn't defined.
*
Defines fixed GC arena size.
`MRB_HEAP_PAGE_SIZE`
*
Defines value is
`1024`
.
*
Specifies number of
`RBasic`
per each heap page.
## Memory pool configuration.
`POOL_ALIGNMENT`
...
...
@@ -123,3 +127,34 @@ largest value of required alignment.
`MRB_WORD_BOXING`
*
If defined represent
`mrb_value`
as a word.
*
If defined
`Float`
will be a mruby object with
`RBasic`
.
## Instance variable configuration.
`MRB_USE_IV_SEGLIST`
*
If defined enable segmented list in instance variable table instead of khash.
*
Segmented list is a linked list of key and value segments.
*
It will linear search instead of hash search.
`MRB_SEGMENT_SIZE`
*
Default value is
`4`
.
*
Specifies size of each segment in segment list.
*
Ignored when
`MRB_USE_IV_SEGLIST`
isn't defined.
`MRB_IVHASH_INIT_SIZE`
*
Default value is
`8`
.
*
Specifies initial size for instance variable table.
*
Ignored when
`MRB_USE_IV_SEGLIST`
is defined.
## Other configuration.
`MRB_FUNCALL_ARGC_MAX`
*
Default value is
`16`
.
*
Specifies 4th argument(
`argc`
) max value of
`mrb_funcall`
.
*
Raises
`ArgumentError`
when the
`argc`
argument is bigger then this value
`mrb_funcall`
.
`KHASH_DEFAULT_SIZE`
*
Default value is
`32`
.
*
Specifies default size of khash table bucket.
*
Used in
`kh_init_ ## name`
function.
`MRB_STR_BUF_MIN_SIZE`
*
Default value is
`128`
.
*
Specifies initial capacity of
`RString`
created by
`mrb_str_buf_new`
function..
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