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
0ae199ca
Commit
0ae199ca
authored
Jun 17, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mrbconf documentation.
parent
abb682ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
doc/mrbconf/README.md
doc/mrbconf/README.md
+38
-0
No files found.
doc/mrbconf/README.md
0 → 100644
View file @
0ae199ca
# mruby configuration macros.
## stdio setting.
`ENABLE_STDIO`
*
Will be defined automatically if
`DISABLE_STDIO`
isn't defined.
*
Uses
`<stdio.h>`
functions.
`DISABLE_STDIO`
*
When defined
`<stdio.h>`
functions won't be used.
## Debug macros.
`ENABLE_DEBUG`
*
When defined code fetch hook and debug OP hook will be enabled.
*
When using any of the hook set function pointer
`code_fetch_hook`
and/or
`debug_op_hook`
of
`mrb_state`
.
*
Fetch hook will be called before any OP.
*
Debug OP hook will be called when dispatching
`OP_DEBUG`
.
`DISABLE_DEBUG`
*
Will be define automatically if
`ENABLE_DEBUG`
isn't defined.
`MRB_DEBUG`
*
When defined
`mrb_assert*`
macro will be defined with macros from
`<assert.h>`
.
*
Could be enabled via
`enable_debug`
method of
`MRuby::Build`
.
## Stack configuration
`MRB_STACK_EXTEND_DOUBLING`
*
If defined doubles the stack size when extending it.
*
Else extends stack with
`MRB_STACK_GROWTH`
.
`MRB_STACK_GROWTH`
*
Default value is
`128`
.
*
Used in stack extending.
*
Ignored when
`MRB_STACK_EXTEND_DOUBLING`
is defined.
`MRB_STACK_MAX`
*
Default value is
`0x40000 - MRB_STACK_GROWTH`
.
*
Raises
`RuntimeError`
when stack size exceeds this value.
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