summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
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 /include/mruby.h
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 'include/mruby.h')
-rw-r--r--include/mruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 2db11c52f..e6371564e 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -188,7 +188,7 @@ struct mrb_context {
*/
typedef mrb_value (*mrb_func_t)(struct mrb_state *mrb, mrb_value self);
-#ifdef MRB_METHOD_TABLE_INLINE
+#ifndef MRB_METHOD_T_STRUCT
typedef uintptr_t mrb_method_t;
#else
typedef struct {