summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/iseq.h b/iseq.h
index e965e8d257..42ae4c8ce2 100644
--- a/iseq.h
+++ b/iseq.h
@@ -23,7 +23,9 @@ rb_call_info_kw_arg_bytes(int keyword_len)
return sizeof(struct rb_call_info_kw_arg) + sizeof(VALUE) * (keyword_len - 1);
}
-#define ISEQ_COMPILE_DATA(iseq) (iseq)->compile_data_
+#define ISEQ_COMPILE_DATA(iseq) (iseq)->compile_data_
+#define ISEQ_COVERAGE(iseq) (iseq)->variable_body->coverage_
+#define ISEQ_COVERAGE_SET(iseq, cov) RB_OBJ_WRITE((iseq), &(iseq)->variable_body->coverage_, cov)
RUBY_SYMBOL_EXPORT_BEGIN