diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-01 15:25:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-01 15:25:28 +0000 |
commit | 66fd9d44d87240164588b42c887b6e3d6ee99308 (patch) | |
tree | f2b2fee9d1c6f273e07c32f7f84dc5bb5d7c7ba8 /probes_helper.h | |
parent | 82b1bfe417120de96737de88f406e1b877cef5f7 (diff) | |
download | ruby-66fd9d44d87240164588b42c887b6e3d6ee99308.tar.gz |
adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'probes_helper.h')
-rw-r--r-- | probes_helper.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/probes_helper.h b/probes_helper.h index 13bcbdbbda..91514b31ea 100644 --- a/probes_helper.h +++ b/probes_helper.h @@ -23,7 +23,7 @@ VALUE rb_class_path_no_cache(VALUE _klass); else if (FL_TEST(_klass, FL_SINGLETON)) { \ _klass = rb_iv_get(_klass, "__attached__"); \ } \ - switch(TYPE(_klass)) { \ + switch (TYPE(_klass)) { \ case T_CLASS: \ case T_ICLASS: \ case T_MODULE: \ @@ -31,7 +31,8 @@ VALUE rb_class_path_no_cache(VALUE _klass); VALUE _name = rb_class_path_no_cache(_klass); \ if (!NIL_P(_name)) { \ classname = StringValuePtr(_name); \ - } else { \ + } \ + else { \ classname = "<unknown>"; \ } \ methodname = rb_id2name(_id); \ |