mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Change modifier to MRB_INLINE from static inline
This commit is contained in:
@@ -91,7 +91,7 @@ MRB_API mrb_value mrb_word_boxing_float_pool(struct mrb_state*, mrb_float);
|
||||
#define mrb_fixnum(o) ((mrb_int)(o).value.i)
|
||||
#define mrb_symbol(o) (o).value.sym
|
||||
|
||||
static inline enum mrb_vtype
|
||||
MRB_INLINE enum mrb_vtype
|
||||
mrb_type(mrb_value o)
|
||||
{
|
||||
switch (o.w) {
|
||||
|
||||
@@ -23,7 +23,7 @@ struct RClass {
|
||||
|
||||
#define mrb_class_ptr(v) ((struct RClass*)(mrb_ptr(v)))
|
||||
|
||||
static inline struct RClass*
|
||||
MRB_INLINE struct RClass*
|
||||
mrb_class(mrb_state *mrb, mrb_value v)
|
||||
{
|
||||
switch (mrb_type(v)) {
|
||||
|
||||
@@ -63,7 +63,7 @@ MRB_API void *mrb_data_check_get_ptr(mrb_state *mrb, mrb_value, const mrb_data_t
|
||||
*(void**)&sval = mrb_data_get_ptr(mrb, obj, type); \
|
||||
} while (0)
|
||||
|
||||
static inline void
|
||||
MRB_INLINE void
|
||||
mrb_data_init(mrb_value v, void *ptr, const mrb_data_type *type)
|
||||
{
|
||||
mrb_assert(mrb_type(v) == MRB_TT_DATA);
|
||||
|
||||
@@ -189,7 +189,7 @@ MRB_INLINE mrb_value mrb_float_value(struct mrb_state *mrb, mrb_float f)
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline mrb_value
|
||||
MRB_INLINE mrb_value
|
||||
mrb_cptr_value(struct mrb_state *mrb, void *p)
|
||||
{
|
||||
mrb_value v;
|
||||
@@ -208,7 +208,7 @@ MRB_INLINE mrb_value mrb_fixnum_value(mrb_int i)
|
||||
return v;
|
||||
}
|
||||
|
||||
static inline mrb_value
|
||||
MRB_INLINE mrb_value
|
||||
mrb_symbol_value(mrb_sym i)
|
||||
{
|
||||
mrb_value v;
|
||||
@@ -216,7 +216,7 @@ mrb_symbol_value(mrb_sym i)
|
||||
return v;
|
||||
}
|
||||
|
||||
static inline mrb_value
|
||||
MRB_INLINE mrb_value
|
||||
mrb_obj_value(void *p)
|
||||
{
|
||||
mrb_value v;
|
||||
@@ -260,7 +260,7 @@ MRB_INLINE mrb_value mrb_true_value(void)
|
||||
return v;
|
||||
}
|
||||
|
||||
static inline mrb_value
|
||||
MRB_INLINE mrb_value
|
||||
mrb_bool_value(mrb_bool boolean)
|
||||
{
|
||||
mrb_value v;
|
||||
@@ -268,7 +268,7 @@ mrb_bool_value(mrb_bool boolean)
|
||||
return v;
|
||||
}
|
||||
|
||||
static inline mrb_value
|
||||
MRB_INLINE mrb_value
|
||||
mrb_undef_value(void)
|
||||
{
|
||||
mrb_value v;
|
||||
|
||||
Reference in New Issue
Block a user