summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-02 03:12:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-02 03:12:04 +0000
commit6db56c86c9eecc4075d3a281be28e4fcdfacd5e4 (patch)
treea8a043588ab5e8f03ffdee44fd125ca6c45e9e71 /vm.c
parenteb5f361937c6e4307ac34afa93a4ffbd447ef4e0 (diff)
fill rdocs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index ccc12a7..69b4163 100644
--- a/vm.c
+++ b/vm.c
@@ -2422,9 +2422,11 @@ Init_VM(void)
#if VM_COLLECT_USAGE_DETAILS
/* ::RubyVM::USAGE_ANALYSIS_* */
- rb_define_const(rb_cRubyVM, "USAGE_ANALYSIS_INSN", rb_hash_new());
- rb_define_const(rb_cRubyVM, "USAGE_ANALYSIS_REGS", rb_hash_new());
- rb_define_const(rb_cRubyVM, "USAGE_ANALYSIS_INSN_BIGRAM", rb_hash_new());
+#define define_usage_analysis_hash(name) /* shut up rdoc -C */ \
+ rb_define_const(rb_cRubyVM, "USAGE_ANALYSIS_"#name, rb_hash_new())
+ define_usage_analysis_hash("INSN");
+ define_usage_analysis_hash("REGS");
+ define_usage_analysis_hash("INSN_BIGRAM");
rb_define_singleton_method(rb_cRubyVM, "USAGE_ANALYSIS_INSN_STOP", usage_analysis_insn_stop, 0);
rb_define_singleton_method(rb_cRubyVM, "USAGE_ANALYSIS_OPERAND_STOP", usage_analysis_operand_stop, 0);