summaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-09-16 11:14:13 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-09-16 11:14:13 +0900
commit2256bb07b02c9025ed7ea1fee8c21c86104c07dc (patch)
treed84e58781971e8574db7ea720b6e33a235b7796e /doc
parent30f37872486915174f23083fc70d2699084918e1 (diff)
downloadmruby-2256bb07b02c9025ed7ea1fee8c21c86104c07dc.tar.gz
mruby-2256bb07b02c9025ed7ea1fee8c21c86104c07dc.zip
Remove `MRB_METHOD_TABLE_INLINE`.
`MRB_METHOD_TABLE_INLINE` was fragile. It requires `-falign-functions=n`. On platform that uses higher bits of function pointers, you can use new `MRB_METHOD_T_STRUCT` configuration macro.
Diffstat (limited to 'doc')
-rw-r--r--doc/guides/mrbconf.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/guides/mrbconf.md b/doc/guides/mrbconf.md
index 3c20b3388..4f5349e77 100644
--- a/doc/guides/mrbconf.md
+++ b/doc/guides/mrbconf.md
@@ -180,10 +180,10 @@ largest value of required alignment.
* Ignored if `MRB_METHOD_CACHE` is not defined.
* Need to be the power of 2.
-`MRB_METHOD_TABLE_INLINE`
-* Reduce the size of method table.
-* Requires LSB of function pointers to be zero.
-* For example, you might need to specify `--falign-functions=n` (where `n > 1`) for GCC.
+`MRB_METHOD_T_STRUCT`
+* Use C struct to represent `mrb_method_t`
+* No `MRB_METHOD_T_STRUCT` requires highest 2 bits of function pointers to be zero
+* Define this macro on machines that use higher bits of pointers
`MRB_ENABLE_ALL_SYMBOLS`
* Make it available `Symbols.all_symbols` in `mrbgems/mruby-symbol-ext`