diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-09-16 11:14:13 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-09-16 11:14:13 +0900 |
| commit | 2256bb07b02c9025ed7ea1fee8c21c86104c07dc (patch) | |
| tree | d84e58781971e8574db7ea720b6e33a235b7796e /include/mruby.h | |
| parent | 30f37872486915174f23083fc70d2699084918e1 (diff) | |
| download | mruby-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.h | 2 |
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 { |
