diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-20 13:57:43 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-20 13:57:43 +0900 |
| commit | 159575f63024c79592229f9c0e7da42a0075dae9 (patch) | |
| tree | 3859bd2220987370fa9edb27448c7c71b6837266 /src/variable.c | |
| parent | 505e6017306e09487a4a7f1b0fb1c9976f4f5ec5 (diff) | |
| download | mruby-159575f63024c79592229f9c0e7da42a0075dae9.tar.gz mruby-159575f63024c79592229f9c0e7da42a0075dae9.zip | |
Renamed `is_namespace()` to `namespace_p()`.
Diffstat (limited to 'src/variable.c')
| -rw-r--r-- | src/variable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/variable.c b/src/variable.c index cc7936a46..72c13aa1f 100644 --- a/src/variable.c +++ b/src/variable.c @@ -364,7 +364,7 @@ mrb_obj_iv_set(mrb_state *mrb, struct RObject *obj, mrb_sym sym, mrb_value v) } static inline mrb_bool -is_namespace(enum mrb_vtype tt) +namespace_p(enum mrb_vtype tt) { return tt == MRB_TT_CLASS || tt == MRB_TT_MODULE ? TRUE : FALSE; } @@ -372,7 +372,7 @@ is_namespace(enum mrb_vtype tt) static inline void assign_class_name(mrb_state *mrb, struct RObject *obj, mrb_sym sym, mrb_value v) { - if (is_namespace(obj->tt) && is_namespace(mrb_type(v))) { + if (namespace_p(obj->tt) && namespace_p(mrb_type(v))) { struct RObject *c = mrb_obj_ptr(v); if (obj != c && ISUPPER(mrb_sym2name(mrb, sym)[0])) { mrb_sym id_classname = mrb_intern_lit(mrb, "__classname__"); |
