aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-10 08:34:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-10 08:34:18 +0000
commitcf09c0c351d15968819bbe73a5a9d9dc41a3e0d9 (patch)
tree94a8ce38dab0243bb6e6133bd66fc95a1b5e82af /iseq.h
parent2d39d11436b5cae57f8d87e424f9f30bb97b7e20 (diff)
downloadruby-cf09c0c351d15968819bbe73a5a9d9dc41a3e0d9.tar.gz
iseq.h: coverage_enabled flag
* iseq.c (prepare_iseq_build): enable coverage by coverage_enabled option, not by parse_in_eval flag in the thread context. * iseq.h (rb_compile_option_struct): add coverage_enabled flag. * parse.y (yycompile0): set coverage_enabled flag if coverage array is made. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index 11e67352f8..e9c97dccbe 100644
--- a/iseq.h
+++ b/iseq.h
@@ -134,6 +134,7 @@ struct rb_compile_option_struct {
unsigned int trace_instruction: 1;
unsigned int frozen_string_literal: 1;
unsigned int debug_frozen_string_literal: 1;
+ unsigned int coverage_enabled: 1;
int debug_level;
};