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.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-09-16 11:14:13 +09:00
parent 30f3787248
commit 2256bb07b0
4 changed files with 10 additions and 19 deletions
+1 -1
View File
@@ -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 {