summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-06-19 21:39:01 +0900
committertake_cheeze <[email protected]>2014-06-19 21:39:01 +0900
commit412c86bb58c85057d85e4cbe780ca119051e2ae6 (patch)
treed8ebca8509c1f460e26157a68335c7203942d791
parent94ae70e8eea0462c63e76e1e50147ec2db2aa7b5 (diff)
downloadmruby-412c86bb58c85057d85e4cbe780ca119051e2ae6.tar.gz
mruby-412c86bb58c85057d85e4cbe780ca119051e2ae6.zip
Add primitive type configuration document.
-rw-r--r--doc/mrbconf/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/mrbconf/README.md b/doc/mrbconf/README.md
index bb30c0b12..1be60fc05 100644
--- a/doc/mrbconf/README.md
+++ b/doc/mrbconf/README.md
@@ -46,3 +46,19 @@ You can use mrbconfs with following ways:
`MRB_STACK_MAX`
* Default value is `0x40000 - MRB_STACK_GROWTH`.
* Raises `RuntimeError` when stack size exceeds this value.
+
+## Primitive type configuration.
+
+`MRB_USE_FLOAT`
+* When defined single precision floating point type(C type `float`) is used as `mrb_float`.
+* Else double precision floating point type(C type `double`) is used as `mrb_float`.
+
+`MRB_INT16`
+* When defined `int16_t` will be defined as `mrb_int`.
+* Conflicts with `MRB_INT64`.
+
+`MRB_INT64`
+* When defined `int64_t` will be defined as `mrb_int`.
+* Conflicts with `MRB_INT16`.
+* When `MRB_INT16` or `MRB_INT64` isn't defined `int`(most of the times 32-bit integer)
+will be defined as `mrb_int`.