summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-08-25 23:00:18 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-25 23:00:19 -0700
commitd6f21b308bcff03e82f8b3dbf11a852ce111b3b3 (patch)
tree58aaa4f5551b4adae2bf0ac52287162c1f2f4c75 /vm_core.h
parent098a3cfaa7afe40e023e589c92124bac18e207c3 (diff)
Convert catch_except_t to stdbool
catch_excep_t is a field that exists for MJIT. In the process of rewriting MJIT in Ruby, I added API to convert 1/0 of _Bool to true/false, and it seemed confusing and hard to maintain if you don't use _Bool for *_p fields.
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 45ec111155..eee25161f5 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -474,7 +474,7 @@ struct rb_iseq_constant_body {
iseq_bits_t single;
} mark_bits;
- char catch_except_p; /* If a frame of this ISeq may catch exception, set TRUE */
+ bool catch_except_p; // If a frame of this ISeq may catch exception, set true.
// If true, this ISeq is leaf *and* backtraces are not used, for example,
// by rb_profile_frames. We verify only leafness on VM_CHECK_MODE though.
// Note that GC allocations might use backtraces due to