mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
RHASH_TBL: is now ext-only
It seems almost no internal codes use RHASH_TBL any longer. Why not just eliminate it entirely, so that the macro can be purely ext-only.
This commit is contained in:
parent
d2eeb83634
commit
99093e1600
Notes:
git
2020-08-19 15:11:27 +09:00
6 changed files with 10 additions and 17 deletions
|
@ -252,7 +252,8 @@ rb_coverage_peek_result(VALUE klass)
|
|||
if (!RTEST(coverages)) {
|
||||
rb_raise(rb_eRuntimeError, "coverage measurement is not enabled");
|
||||
}
|
||||
st_foreach(RHASH_TBL(coverages), coverage_peek_result_i, ncoverages);
|
||||
OBJ_WB_UNPROTECT(coverages);
|
||||
st_foreach(RHASH_TBL_RAW(coverages), coverage_peek_result_i, ncoverages);
|
||||
|
||||
if (current_mode & COVERAGE_TARGET_METHODS) {
|
||||
rb_objspace_each_objects(method_coverage_i, &ncoverages);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue